pub struct IgmpResponseTimeV3(/* private fields */);
Expand description
Thin wrapper around u8 that provides maximum response time parsing for IGMP v3.
Provides conversions to and from Duration
for parsing and
and serializing in the correct format.
Implementations§
Source§impl IgmpResponseTimeV3
impl IgmpResponseTimeV3
Sourcepub fn new_lossy(value: Duration) -> Result<Self, OverflowError>
pub fn new_lossy(value: Duration) -> Result<Self, OverflowError>
Creates a new IgmpResponseTimeV3
allowing lossy conversion from
value
.
Sourcepub fn new_exact(value: Duration) -> Result<Self, ExactConversionError>
pub fn new_exact(value: Duration) -> Result<Self, ExactConversionError>
Creates a new IgmpResponseTimeV3
rejecting lossy conversion from
value
.
Trait Implementations§
Source§impl Clone for IgmpResponseTimeV3
impl Clone for IgmpResponseTimeV3
Source§fn clone(&self) -> IgmpResponseTimeV3
fn clone(&self) -> IgmpResponseTimeV3
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IgmpResponseTimeV3
impl Debug for IgmpResponseTimeV3
Source§impl From<IgmpResponseTimeV3> for Duration
impl From<IgmpResponseTimeV3> for Duration
Source§fn from(IgmpResponseTimeV3: IgmpResponseTimeV3) -> Duration
fn from(IgmpResponseTimeV3: IgmpResponseTimeV3) -> Duration
Converts to this type from the input type.
Source§impl IgmpMaxRespCode for IgmpResponseTimeV3
impl IgmpMaxRespCode for IgmpResponseTimeV3
Source§impl PartialEq for IgmpResponseTimeV3
impl PartialEq for IgmpResponseTimeV3
impl Copy for IgmpResponseTimeV3
impl StructuralPartialEq for IgmpResponseTimeV3
Auto Trait Implementations§
impl Freeze for IgmpResponseTimeV3
impl RefUnwindSafe for IgmpResponseTimeV3
impl Send for IgmpResponseTimeV3
impl Sync for IgmpResponseTimeV3
impl Unpin for IgmpResponseTimeV3
impl UnwindSafe for IgmpResponseTimeV3
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)