[][src]Enum rsntp::ReferenceIdentifier

pub enum ReferenceIdentifier {
    Empty,
    ASCII(String),
    IpAddress(IpAddr),
    MD5Hash(u32),
}

Identifies the particular reference source.

  • For primary servers, the value is a four-character ASCII string. For possible values see RFC4330, section 4.
  • For IPv4 secondary servers, the value is the IPv4 address of the synchronization source.
  • For IPv6 secondary servers, the value is the first 32 bits of the MD5 hash of the IPv6 address of the synchronization source

Variants

Empty

No reference identifier. Currently should not used in public API

ASCII(String)

ASCII string identifying a primary server

IpAddress(IpAddr)

IPv4 address, identifiying an IPv4 secondary server

MD5Hash(u32)

MD5 hash of an IPv6 address, identifying an IPv6 server

Trait Implementations

impl Clone for ReferenceIdentifier[src]

impl Debug for ReferenceIdentifier[src]

impl Display for ReferenceIdentifier[src]

impl Eq for ReferenceIdentifier[src]

impl Hash for ReferenceIdentifier[src]

impl PartialEq<ReferenceIdentifier> for ReferenceIdentifier[src]

impl StructuralEq for ReferenceIdentifier[src]

impl StructuralPartialEq for ReferenceIdentifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.