pub struct Mldv2ReportMessageBuilder<I> { /* private fields */ }Expand description
The builder for MLDv2 Report Messages.
Implementations§
Source§impl<I> Mldv2ReportMessageBuilder<I>
impl<I> Mldv2ReportMessageBuilder<I>
Sourcepub fn new(groups: I) -> Self
pub fn new(groups: I) -> Self
Creates a new Mldv2ReportMessageBuilder.
Source§impl<I> Mldv2ReportMessageBuilder<I>
impl<I> Mldv2ReportMessageBuilder<I>
Sourcepub fn with_len_limits(
self,
max_len: usize,
) -> Result<impl Iterator<Item = Mldv2ReportMessageBuilder<impl Iterator<Item: GmpReportGroupRecord<Ipv6Addr>> + Clone>>, InvalidConstraintsError>
pub fn with_len_limits( self, max_len: usize, ) -> Result<impl Iterator<Item = Mldv2ReportMessageBuilder<impl Iterator<Item: GmpReportGroupRecord<Ipv6Addr>> + Clone>>, InvalidConstraintsError>
Transform this builder into an iterator of builders with a given
max_len for each generated packet.
max_len is the maximum length each builder yielded by the returned
iterator can have. The groups used to create this builder are split into
multiple reports in order to meet this length. Note that this length
does not account for the IP or the shared ICMP header.
Returns Err if max_len is not large enough to meet minimal
constraints for each report.
Trait Implementations§
Source§impl<I: Debug> Debug for Mldv2ReportMessageBuilder<I>
impl<I: Debug> Debug for Mldv2ReportMessageBuilder<I>
Source§impl<I> InnerPacketBuilder for Mldv2ReportMessageBuilder<I>
impl<I> InnerPacketBuilder for Mldv2ReportMessageBuilder<I>
Source§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
Source§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<I> Freeze for Mldv2ReportMessageBuilder<I>where
I: Freeze,
impl<I> RefUnwindSafe for Mldv2ReportMessageBuilder<I>where
I: RefUnwindSafe,
impl<I> Send for Mldv2ReportMessageBuilder<I>where
I: Send,
impl<I> Sync for Mldv2ReportMessageBuilder<I>where
I: Sync,
impl<I> Unpin for Mldv2ReportMessageBuilder<I>where
I: Unpin,
impl<I> UnwindSafe for Mldv2ReportMessageBuilder<I>where
I: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more