packet_formats::icmp::mld

Trait Mldv1MessageType

Source
pub trait Mldv1MessageType {
    type MaxRespDelay: MaxCode<U16> + Debug + Copy;
    type GroupAddr: Into<Ipv6Addr> + Debug + Copy;
}
Expand description

The trait for all MLDv1 Messages.

Required Associated Types§

Source

type MaxRespDelay: MaxCode<U16> + Debug + Copy

The type used to represent maximum response delay.

It should be () for Report and Done messages, and be Mldv1ResponseDelay for Query messages.

Source

type GroupAddr: Into<Ipv6Addr> + Debug + Copy

The type used to represent the group_addr in the message.

For Query Messages, it is just Ipv6Addr because general queries will have this field to be zero, which is not a multicast address, for Report and Done messages, this should be MulticastAddr<Ipv6Addr>.

Implementors§