Trait packet_formats::icmp::mld::Mldv2MessageType
source · pub trait Mldv2MessageType {
type MessageHeader: Debug + IntoBytes + Immutable;
type RecordHeader: Debug + IntoBytes + Immutable;
type RecordRepeatedContent: Debug + IntoBytes + Immutable;
}
Expand description
The trait for MLDv2 Messages.
Required Associated Types§
sourcetype MessageHeader: Debug + IntoBytes + Immutable
type MessageHeader: Debug + IntoBytes + Immutable
The type used to track the header.
It should be Mldv2QueryMessageHeader for MulticastListenerQueryV2 and Mldv2ReportHeader for MulticastListenerReportV2.
sourcetype RecordHeader: Debug + IntoBytes + Immutable
type RecordHeader: Debug + IntoBytes + Immutable
An [Mldv2Message] will have a set of records with a fix sized part and a variable sized part: [RecordHeader] tracks the fix sized part.
It should be Ipv6Addr for MulticastListenerQueryV2 and Mldv2ReportRecordHeader for MulticastListenerReportV2.
sourcetype RecordRepeatedContent: Debug + IntoBytes + Immutable
type RecordRepeatedContent: Debug + IntoBytes + Immutable
An [Mldv2Message] will have a set of records with a fix sized part and a variable sized part: [RecordRepeatedContent] tracks the variable sized part.
It should be [()] for MulticastListenerQueryV2 and Ipv6Addr for MulticastListenerReportV2.