Struct ntp::formats::Stratum [−][src]
pub struct Stratum { /* fields omitted */ }
Methods
impl Stratum
[src]
impl Stratum
pub fn new(val: u8) -> Stratum
[src]
pub fn new(val: u8) -> Stratum
pub fn unspecified(&self) -> bool
[src]
pub fn unspecified(&self) -> bool
pub fn invalid(&self) -> bool
[src]
pub fn invalid(&self) -> bool
pub fn primary(&self) -> bool
[src]
pub fn primary(&self) -> bool
pub fn secondary(&self) -> bool
[src]
pub fn secondary(&self) -> bool
pub fn unsynchronized(&self) -> bool
[src]
pub fn unsynchronized(&self) -> bool
pub fn reserved(&self) -> bool
[src]
pub fn reserved(&self) -> bool
pub fn get_value(&self) -> u8
[src]
pub fn get_value(&self) -> u8
Trait Implementations
impl Debug for Stratum
[src]
impl Debug for Stratum
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Stratum
[src]
impl PartialEq for Stratum
fn eq(&self, other: &Stratum) -> bool
[src]
fn eq(&self, other: &Stratum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Stratum) -> bool
[src]
fn ne(&self, other: &Stratum) -> bool
This method tests for !=
.
impl Eq for Stratum
[src]
impl Eq for Stratum
impl PartialOrd for Stratum
[src]
impl PartialOrd for Stratum
fn partial_cmp(&self, other: &Stratum) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Stratum) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Stratum) -> bool
[src]
fn lt(&self, other: &Stratum) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Stratum) -> bool
[src]
fn le(&self, other: &Stratum) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Stratum) -> bool
[src]
fn gt(&self, other: &Stratum) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Stratum) -> bool
[src]
fn ge(&self, other: &Stratum) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Default for Stratum
[src]
impl Default for Stratum
impl Ord for Stratum
[src]
impl Ord for Stratum
fn cmp(&self, other: &Stratum) -> Ordering
[src]
fn cmp(&self, other: &Stratum) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more