pub trait Sendable {
// Required methods
fn to_bytes(&self) -> Result<Bytes>;
fn from_bytes(bytes: &Bytes) -> Result<Self>
where Self: Sized;
}Expand description
Type able to be sent between devices
Required Methods§
fn to_bytes(&self) -> Result<Bytes>
fn from_bytes(bytes: &Bytes) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".