[−][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
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
Trait Implementations
impl Clone for ReferenceIdentifier
[src]
pub fn clone(&self) -> ReferenceIdentifier
[src]
pub 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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ReferenceIdentifier> for ReferenceIdentifier
[src]
pub fn eq(&self, other: &ReferenceIdentifier) -> bool
[src]
pub 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,