Trait message_encoding::MessageEncoding
source · pub trait MessageEncoding: Sized {
const STATIC_SIZE: Option<usize> = None;
const MAX_SIZE: Option<usize> = Self::STATIC_SIZE;
const _ASSERT: usize = _;
// Required methods
fn write_to<T: Write>(&self, out: &mut T) -> Result<usize>;
fn read_from<T: Read>(read: &mut T) -> Result<Self>;
// Provided method
fn static_size() -> Option<usize> { ... }
}
Provided Associated Constants§
const STATIC_SIZE: Option<usize> = None
const MAX_SIZE: Option<usize> = Self::STATIC_SIZE
const _ASSERT: usize = _
Required Methods§
fn write_to<T: Write>(&self, out: &mut T) -> Result<usize>
fn read_from<T: Read>(read: &mut T) -> Result<Self>
Provided Methods§
fn static_size() -> Option<usize>
👎Deprecated
Object Safety§
This trait is not object safe.