pub trait Message<const N: usize>: Sized {
type Payload: Sized;
// Required methods
fn priority(&self) -> Priority;
fn source(&self) -> Option<NodeId>;
fn subject(&self) -> SubjectId;
fn payload(&self) -> &[u8];
}Expand description
Trait representing a message
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.