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
pub trait Sendable {
// Required methods
fn to_bytes(&self) -> Result<Bytes>;
fn from_bytes(bytes: &Bytes) -> Result<Self>
where Self: Sized;
}Type able to be sent between devices