pub struct Mldv2ResponseDelay(/* private fields */);
Expand description
Maximum Response Delay used in Queryv2 messages, defined in RFC 3810 section 5.1.3.
Trait Implementations§
Source§impl Clone for Mldv2ResponseDelay
impl Clone for Mldv2ResponseDelay
Source§fn clone(&self) -> Mldv2ResponseDelay
fn clone(&self) -> Mldv2ResponseDelay
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 Mldv2ResponseDelay
impl Debug for Mldv2ResponseDelay
Source§impl From<Mldv2ResponseDelay> for Duration
impl From<Mldv2ResponseDelay> for Duration
Source§fn from(code: Mldv2ResponseDelay) -> Self
fn from(code: Mldv2ResponseDelay) -> Self
Converts to this type from the input type.
Source§impl LinExpConversion<Duration> for Mldv2ResponseDelay
impl LinExpConversion<Duration> for Mldv2ResponseDelay
Source§const NUM_MANT_BITS: u8 = 12u8
const NUM_MANT_BITS: u8 = 12u8
Number of bits used for the mantissa.
Source§const NUM_EXP_BITS: u8 = 3u8
const NUM_EXP_BITS: u8 = 3u8
Number of bits used for the exponent.
Source§fn lossy_try_from(value: Duration) -> Result<Self, MldError>
fn lossy_try_from(value: Duration) -> Result<Self, MldError>
Perform a lossy conversion from the
C
type.
Not all values in C
can be exactly represented using the code and they will be rounded to
a code that represents a value close the provided one.Source§const EXP_INCR: u32 = 3u32
const EXP_INCR: u32 = 3u32
How much the exponent needs to be incremented when performing the exponential conversion.
Source§const MANT_BITMASK: u32 = _
const MANT_BITMASK: u32 = _
Bitmask for the mantissa.
Source§const EXP_BITMASK: u32 = _
const EXP_BITMASK: u32 = _
Bitmask for the exponent.
Source§const SWITCHPOINT: u32 = _
const SWITCHPOINT: u32 = _
First value for which we start the exponential conversion.
Source§const MANT_PREFIX: u32 = _
const MANT_PREFIX: u32 = _
Prefix for capturing the mantissa.
Source§fn to_expanded(code: u16) -> u32
fn to_expanded(code: u16) -> u32
Converts the provided code to a value: in a linear way until Self::SWITCHPOINT and using
a floating representation for larger values.
Source§impl MaxCode<U16<BigEndian>> for Mldv2ResponseDelay
impl MaxCode<U16<BigEndian>> for Mldv2ResponseDelay
Source§impl PartialEq for Mldv2ResponseDelay
impl PartialEq for Mldv2ResponseDelay
impl Copy for Mldv2ResponseDelay
impl Eq for Mldv2ResponseDelay
impl StructuralPartialEq for Mldv2ResponseDelay
Auto Trait Implementations§
impl Freeze for Mldv2ResponseDelay
impl RefUnwindSafe for Mldv2ResponseDelay
impl Send for Mldv2ResponseDelay
impl Sync for Mldv2ResponseDelay
impl Unpin for Mldv2ResponseDelay
impl UnwindSafe for Mldv2ResponseDelay
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
)