Struct packet_formats::igmp::messages::IgmpMembershipReportV1
source · pub struct IgmpMembershipReportV1;
Expand description
IGMPv1 Membership Report message.
IgmpMembershipReportV1
implements MessageType
, providing the intended
behavior for IGMPv1 Membership Reports as defined in RFC 1112.
In a Host Membership Report message, the group address field (expressed in
FixedHeader
) holds the IP host group address of the group being reported.
Hosts respond to a Query by generating Host Membership Reports, reporting each host group to which they belong on the network interface from which the Query was received.
Trait Implementations§
source§impl Debug for IgmpMembershipReportV1
impl Debug for IgmpMembershipReportV1
source§impl<B> MessageType<B> for IgmpMembershipReportV1
impl<B> MessageType<B> for IgmpMembershipReportV1
§type FixedHeader = Ipv4Addr
type FixedHeader = Ipv4Addr
The fixed header type used for the message type. Read more
source§const TYPE: IgmpMessageType = IgmpMessageType::MembershipReportV1
const TYPE: IgmpMessageType = IgmpMessageType::MembershipReportV1
The type corresponding to this message type. Read more
§type MaxRespTime = ()
type MaxRespTime = ()
§type VariableBody = ()
type VariableBody = ()
The variable-length body for the message type.
source§fn parse_body<BV: BufferView<B>>(
_header: &Self::FixedHeader,
bytes: BV,
) -> Result<Self::VariableBody, ParseError>where
B: SplitByteSlice,
fn parse_body<BV: BufferView<B>>(
_header: &Self::FixedHeader,
bytes: BV,
) -> Result<Self::VariableBody, ParseError>where
B: SplitByteSlice,
Parses the variable body part of the IGMP message.
source§fn body_bytes(_body: &Self::VariableBody) -> &[u8] ⓘwhere
B: SplitByteSlice,
fn body_bytes(_body: &Self::VariableBody) -> &[u8] ⓘwhere
B: SplitByteSlice,
Retrieves the underlying bytes of
VariableBody
.Auto Trait Implementations§
impl Freeze for IgmpMembershipReportV1
impl RefUnwindSafe for IgmpMembershipReportV1
impl Send for IgmpMembershipReportV1
impl Sync for IgmpMembershipReportV1
impl Unpin for IgmpMembershipReportV1
impl UnwindSafe for IgmpMembershipReportV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more