Skip to main content

Message

Trait Message 

Source
pub trait Message: Debug {
    // Required method
    fn payload(&self) -> &[u8] ;
}
Expand description

Provides a generic abstraction over a message.

Required Methods§

Source

fn payload(&self) -> &[u8]

Returns the payload of the message.

Implementors§