[][src]Enum rsntp::KissCode

pub enum KissCode {
    Unknown,
    AssociationBelongsToAnycastServer,
    AssociationBelongsToBroadcastServer,
    AssociationBelongsToManycastServer,
    ServerAuthenticationFailed,
    AutokeySequenceFailed,
    CryptographicAuthenticationFailed,
    AccessDenied,
    LostPeer,
    AssociationNotYetSynchronized,
    NoKeyFound,
    RateExceeded,
    TinkeringWithAssociation,
    StepChange,
}

Kiss code, reason of a Kiss-o'-Death reply.

Kiss code provides an information about why the SNTP server sent a Kiss-o'-Death packet, i.e. why the request is rejected. This enum is generally a 1-to-1 mapping for SNTP RFC kiss codes, see RFC 4330 section 8.

Variants

Unknown

Unknown code

AssociationBelongsToAnycastServer

The association belongs to a anycast server

AssociationBelongsToBroadcastServer

The association belongs to a broadcast server

AssociationBelongsToManycastServer

The association belongs to a manycast server

ServerAuthenticationFailed

Server authentication failed

AutokeySequenceFailed

Autokey sequence failed

CryptographicAuthenticationFailed

Cryptographic authentication or identification failed

AccessDenied

Access denied by remote server

LostPeer

Lost peer in symmetric mode

AssociationNotYetSynchronized

The association has not yet synchronized for the first time

NoKeyFound

No key found. Either the key was never installed or is not trusted

RateExceeded

Rate exceeded. The server has temporarily denied access because the client exceeded the rate threshold

TinkeringWithAssociation

Somebody is tinkering with the association from a remote host running ntpdc. Not to worry unless some rascal has stolen your keys

StepChange

A step change in system time has occurred, but the association has not yet resynchronized

Trait Implementations

impl Clone for KissCode[src]

impl Copy for KissCode[src]

impl Debug for KissCode[src]

impl Display for KissCode[src]

impl Eq for KissCode[src]

impl Hash for KissCode[src]

impl PartialEq<KissCode> for KissCode[src]

impl StructuralEq for KissCode[src]

impl StructuralPartialEq for KissCode[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.