pub trait PacketHeader: Sized {
type InnerType;
const NAME: &'static str;
const FIXED_LEN: usize = _;
// Required method
fn inner_type(&self) -> Self::InnerType;
// Provided methods
fn total_len(&self, buf: &[u8]) -> usize { ... }
fn is_valid(&self) -> bool { ... }
}Required Associated Constants§
Provided Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn inner_type(&self) -> Self::InnerType
fn inner_type(&self) -> Self::InnerType
return the inner type of the header
Provided Methods§
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.