[−][src]Enum rsntp::ReferenceIdentifier
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 (IPv6 not yet supported by the library)
Variants
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 (not yet supported)
Trait Implementations
impl Clone for ReferenceIdentifier
[src]
fn clone(&self) -> ReferenceIdentifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReferenceIdentifier
[src]
impl Display for ReferenceIdentifier
[src]
impl Eq for ReferenceIdentifier
[src]
impl Hash for ReferenceIdentifier
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ReferenceIdentifier> for ReferenceIdentifier
[src]
fn eq(&self, other: &ReferenceIdentifier) -> bool
[src]
fn ne(&self, other: &ReferenceIdentifier) -> bool
[src]
impl StructuralEq for ReferenceIdentifier
[src]
impl StructuralPartialEq for ReferenceIdentifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReferenceIdentifier
impl Send for ReferenceIdentifier
impl Sync for ReferenceIdentifier
impl Unpin for ReferenceIdentifier
impl UnwindSafe for ReferenceIdentifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,