Type Alias Mldv2QQIC

Source
pub type Mldv2QQIC = QQIC;
Expand description

QQIC (Querier’s Query Interval Code) used in Queryv2 messages, defined in RFC 3810 section 5.1.9.

Aliased to shared GMP implementation for convenience.

Aliased Type§

struct Mldv2QQIC(/* private fields */);

Implementations

Source§

impl QQIC

Source

pub fn new_lossy(value: Duration) -> Result<Self, OverflowError>

Creates a new QQIC allowing lossy conversion from value.

Source

pub fn new_exact(value: Duration) -> Result<Self, ExactConversionError>

Creates a new QQIC rejecting lossy conversion from value.

Trait Implementations§

Source§

impl MaxCode<u8> for Mldv2QQIC

Source§

fn as_code(self) -> u8

Convert to T
Source§

fn from_code(code: u8) -> Self

Convert from T
Source§

impl Clone for QQIC

Source§

fn clone(&self) -> QQIC

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QQIC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QQIC

Source§

fn default() -> QQIC

Returns the “default value” for a type. Read more
Source§

impl From<u8> for QQIC

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for QQIC

Source§

fn eq(&self, other: &QQIC) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for QQIC

Source§

impl Eq for QQIC

Source§

impl StructuralPartialEq for QQIC