pub struct Mldv2QQIC(/* private fields */);
Expand description
QQIC (Querier’s Query Interval Code) used in Queryv2 messages, defined in RFC 3810 section 5.1.9.
Trait Implementations§
Source§impl LinExpConversion<Duration> for Mldv2QQIC
impl LinExpConversion<Duration> for Mldv2QQIC
Source§const NUM_MANT_BITS: u8 = 4u8
const NUM_MANT_BITS: u8 = 4u8
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.
impl Copy for Mldv2QQIC
impl Eq for Mldv2QQIC
impl StructuralPartialEq for Mldv2QQIC
Auto Trait Implementations§
impl Freeze for Mldv2QQIC
impl RefUnwindSafe for Mldv2QQIC
impl Send for Mldv2QQIC
impl Sync for Mldv2QQIC
impl Unpin for Mldv2QQIC
impl UnwindSafe for Mldv2QQIC
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
)