Trait packet_formats::icmp::mld::MaxCode
source · pub trait MaxCode<T: Default + Debug + FromBytes + AsBytes> {
// Required methods
fn as_code(self) -> T;
fn from_code(code: T) -> Self;
}
Expand description
The trait for MLD codes that can be further interpreted using different methods e.g. QQIC.
The type implementing this trait should be able
to convert itself from/to T
Required Methods§
Object Safety§
This trait is not object safe.