Struct packet_formats::igmp::IgmpMessage
source · pub struct IgmpMessage<B: SplitByteSlice, M: MessageType<B>> { /* private fields */ }
Expand description
An IGMP message.
An IgmpMessage
is a struct representing an IGMP message in memory;
it holds the 3 IGMP message parts and is characterized by the
MessageType
trait.
Implementations§
source§impl<B: SplitByteSlice, M: MessageType<B>> IgmpMessage<B, M>
impl<B: SplitByteSlice, M: MessageType<B>> IgmpMessage<B, M>
sourcepub fn builder(&self) -> IgmpPacketBuilder<B, M>
pub fn builder(&self) -> IgmpPacketBuilder<B, M>
Construct a builder with the same contents as this packet.
sourcepub fn max_response_time(&self) -> M::MaxRespTime
pub fn max_response_time(&self) -> M::MaxRespTime
Gets the interpreted Max Response Time for the message
sourcepub fn body(&self) -> &M::VariableBody
pub fn body(&self) -> &M::VariableBody
Returns the body.
source§impl<B: SplitByteSlice, M: MessageType<B, FixedHeader = Ipv4Addr>> IgmpMessage<B, M>
impl<B: SplitByteSlice, M: MessageType<B, FixedHeader = Ipv4Addr>> IgmpMessage<B, M>
sourcepub fn group_addr(&self) -> Ipv4Addr
pub fn group_addr(&self) -> Ipv4Addr
Returns the group address.
Trait Implementations§
source§impl<B: Debug + SplitByteSlice, M: Debug + MessageType<B>> Debug for IgmpMessage<B, M>
impl<B: Debug + SplitByteSlice, M: Debug + MessageType<B>> Debug for IgmpMessage<B, M>
source§impl<B: SplitByteSlice, M: MessageType<B>> ParsablePacket<B, ()> for IgmpMessage<B, M>
impl<B: SplitByteSlice, M: MessageType<B>> ParsablePacket<B, ()> for IgmpMessage<B, M>
§type Error = ParseError
type Error = ParseError
source§fn parse_metadata(&self) -> ParseMetadata
fn parse_metadata(&self) -> ParseMetadata
Gets metadata about this packet required by [
GrowBuffer::undo_parse
]. Read moreAuto Trait Implementations§
impl<B, M> Freeze for IgmpMessage<B, M>
impl<B, M> RefUnwindSafe for IgmpMessage<B, M>where
<M as MessageType<B>>::VariableBody: RefUnwindSafe,
B: RefUnwindSafe,
<M as MessageType<B>>::FixedHeader: RefUnwindSafe,
impl<B, M> Send for IgmpMessage<B, M>
impl<B, M> Sync for IgmpMessage<B, M>
impl<B, M> Unpin for IgmpMessage<B, M>where
<M as MessageType<B>>::VariableBody: Unpin,
B: Unpin,
<M as MessageType<B>>::FixedHeader: Unpin,
impl<B, M> UnwindSafe for IgmpMessage<B, M>where
<M as MessageType<B>>::VariableBody: UnwindSafe,
B: UnwindSafe,
<M as MessageType<B>>::FixedHeader: UnwindSafe,
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