pub trait Message:
'static
+ Sync
+ Send
+ Sized {
type Result: 'static + Sync + Send;
// Provided methods
fn into_envelope(
self,
envelope_type: EnvelopeType,
) -> Result<Envelope<Self>, MessageWrapErr> { ... }
fn as_bytes(&self) -> Result<Vec<u8>, MessageWrapErr> { ... }
fn from_envelope(envelope: Envelope<Self>) -> Result<Self, MessageUnwrapErr> { ... }
fn from_bytes(_: Vec<u8>) -> Result<Self, MessageUnwrapErr> { ... }
fn read_remote_result(_: Vec<u8>) -> Result<Self::Result, MessageUnwrapErr> { ... }
fn write_remote_result(
_res: Self::Result,
) -> Result<Vec<u8>, MessageWrapErr> { ... }
fn name(&self) -> &'static str { ... }
fn type_name() -> &'static str
where Self: Sized { ... }
}Required Associated Types§
Provided Methods§
fn into_envelope( self, envelope_type: EnvelopeType, ) -> Result<Envelope<Self>, MessageWrapErr>
fn as_bytes(&self) -> Result<Vec<u8>, MessageWrapErr>
fn from_envelope(envelope: Envelope<Self>) -> Result<Self, MessageUnwrapErr>
fn from_bytes(_: Vec<u8>) -> Result<Self, MessageUnwrapErr>
fn read_remote_result(_: Vec<u8>) -> Result<Self::Result, MessageUnwrapErr>
fn write_remote_result(_res: Self::Result) -> Result<Vec<u8>, MessageWrapErr>
fn name(&self) -> &'static str
fn type_name() -> &'static strwhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".