Sendable

Trait Sendable 

Source
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§

Source

fn to_bytes(&self) -> Result<Bytes>

Source

fn from_bytes(bytes: &Bytes) -> Result<Self>
where Self: Sized,

Implementors§

Source§

impl<T> Sendable for T
where T: Serialize + for<'de> Deserialize<'de> + Send + 'static,