Trait RpcBorrow

Source
pub trait RpcBorrow<'de>:
    Deserialize<'de>
    + Debug
    + Send
    + Sync
    + Unpin { }
Expand description

An object that can be received over RPC, borrowing from the deserialization context.

This marker trait is blanket-implemented for every qualifying type. It is used to indicate that a type can be borrowed from the body of a wholly or partially serialized JSON-RPC message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'de, T> RpcBorrow<'de> for T
where T: Deserialize<'de> + Debug + Send + Sync + Unpin,