Struct packet_formats::icmp::mld::Mldv2MessageBuilder
source · pub struct Mldv2MessageBuilder<'a, M: Mldv2MessageType> { /* private fields */ }
Expand description
The builder for MLDv2 Messages.
Implementations§
source§impl<'a, M: Mldv2MessageType> Mldv2MessageBuilder<'a, M>
impl<'a, M: Mldv2MessageType> Mldv2MessageBuilder<'a, M>
sourcepub fn new_with_records(
header: M::MessageHeader,
body: &'a [(M::RecordHeader, &'a [M::RecordRepeatedContent])],
) -> Self
pub fn new_with_records( header: M::MessageHeader, body: &'a [(M::RecordHeader, &'a [M::RecordRepeatedContent])], ) -> Self
Create an Mldv2MessageBuilder
with a max_resp_delay
for Query messages.
Trait Implementations§
source§impl<'a, M: Debug + Mldv2MessageType> Debug for Mldv2MessageBuilder<'a, M>
impl<'a, M: Debug + Mldv2MessageType> Debug for Mldv2MessageBuilder<'a, M>
source§impl<'a, M: Mldv2MessageType> InnerPacketBuilder for Mldv2MessageBuilder<'a, M>
impl<'a, M: Mldv2MessageType> InnerPacketBuilder for Mldv2MessageBuilder<'a, M>
§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
§fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
Converts this
InnerPacketBuilder
into a [Serializer
] with a buffer
that can be used for serialization. Read moreAuto Trait Implementations§
impl<'a, M> Freeze for Mldv2MessageBuilder<'a, M>
impl<'a, M> RefUnwindSafe for Mldv2MessageBuilder<'a, M>where
<M as Mldv2MessageType>::MessageHeader: RefUnwindSafe,
<M as Mldv2MessageType>::RecordHeader: RefUnwindSafe,
<M as Mldv2MessageType>::RecordRepeatedContent: RefUnwindSafe,
impl<'a, M> Send for Mldv2MessageBuilder<'a, M>where
<M as Mldv2MessageType>::MessageHeader: Send,
<M as Mldv2MessageType>::RecordHeader: Sync,
<M as Mldv2MessageType>::RecordRepeatedContent: Sync,
impl<'a, M> Sync for Mldv2MessageBuilder<'a, M>where
<M as Mldv2MessageType>::MessageHeader: Sync,
<M as Mldv2MessageType>::RecordHeader: Sync,
<M as Mldv2MessageType>::RecordRepeatedContent: Sync,
impl<'a, M> Unpin for Mldv2MessageBuilder<'a, M>
impl<'a, M> UnwindSafe for Mldv2MessageBuilder<'a, M>where
<M as Mldv2MessageType>::MessageHeader: UnwindSafe,
<M as Mldv2MessageType>::RecordHeader: RefUnwindSafe,
<M as Mldv2MessageType>::RecordRepeatedContent: RefUnwindSafe,
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