pub trait RpcRecv:
DeserializeOwned
+ Debug
+ Send
+ Sync
+ Unpin
+ 'static { }
Expand description
An object that can be received over RPC.
This marker trait is blanket-implemented for every qualifying type. It is used to indicate that a type can be received in the body of a JSON-RPC message.
§Note
We add the 'static
lifetime to the supertraits to indicate that the type
can’t borrow. This is a simplification that makes it easier to use the
types in client code. Servers may prefer borrowing, using the RpcBorrow
trait.
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.