Struct packet_formats::igmp::IgmpResponseTimeV2
source · pub struct IgmpResponseTimeV2(/* private fields */);
Expand description
Thin wrapper around u8
that provides maximum response time parsing
for IGMP v2.
Provides conversions to and from Duration
for parsing and
and serializing in the correct format, following that the underlying u8
is the maximum response time in tenths of seconds.
Trait Implementations§
source§impl Debug for IgmpResponseTimeV2
impl Debug for IgmpResponseTimeV2
source§impl From<IgmpResponseTimeV2> for Duration
impl From<IgmpResponseTimeV2> for Duration
source§fn from(value: IgmpResponseTimeV2) -> Duration
fn from(value: IgmpResponseTimeV2) -> Duration
Converts to this type from the input type.
source§impl IgmpMaxRespCode for IgmpResponseTimeV2
impl IgmpMaxRespCode for IgmpResponseTimeV2
source§impl PartialEq for IgmpResponseTimeV2
impl PartialEq for IgmpResponseTimeV2
source§fn eq(&self, other: &IgmpResponseTimeV2) -> bool
fn eq(&self, other: &IgmpResponseTimeV2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Duration> for IgmpResponseTimeV2
impl TryFrom<Duration> for IgmpResponseTimeV2
impl StructuralPartialEq for IgmpResponseTimeV2
Auto Trait Implementations§
impl Freeze for IgmpResponseTimeV2
impl RefUnwindSafe for IgmpResponseTimeV2
impl Send for IgmpResponseTimeV2
impl Sync for IgmpResponseTimeV2
impl Unpin for IgmpResponseTimeV2
impl UnwindSafe for IgmpResponseTimeV2
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