pub trait EncodedMessage {
// Required methods
fn code(&self) -> &u8;
fn code_mut(&mut self) -> &mut u8;
fn tail(&self) -> &[u8];
fn tail_mut(&mut self) -> &mut [u8];
}
Expand description
Data backing a GenericMessage
.
Think of this as [std::convert::AsMut
] but with differentiated access to two areas (the code
and the options-and-payload).