pub trait Message: BinaryEncodable + MessageType {
// Required methods
fn request_handle(&self) -> u32;
fn decode_by_object_id<S>(
stream: &mut S,
object_id: ObjectId,
ctx: &Context<'_>,
) -> Result<Self, Error>
where S: Read,
Self: Sized;
fn type_id(&self) -> NodeId;
}Expand description
Trait implemented by messages.
Required Methods§
Sourcefn request_handle(&self) -> u32
fn request_handle(&self) -> u32
Get the message request handle.
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.