Enum nippy::protocol::KissOfDeath[][src]

#[repr(u32)]pub enum KissOfDeath {
    Deny,
    Rstr,
    Rate,
}

If the Stratum field is 0, which implies unspecified or invalid, the Reference Identifier field can be used to convey messages useful for status reporting and access control. These are called Kiss-o’-Death (KoD) packets and the ASCII messages they convey are called kiss codes.

The KoD packets got their name because an early use was to tell clients to stop sending packets that violate server access controls. The kiss codes can provide useful information for an intelligent client, either NTPv4 or SNTPv4. Kiss codes are encoded in four-character ASCII strings that are left justified and zero filled. The strings are designed for character displays and log files.

Recipients of kiss codes MUST inspect them and, in the following cases, take the actions described.

Variants

Deny

The client MUST demobilize any associations to that server and stop sending packets to it.

Rstr

The client MUST demobilize any associations to that server and stop sending packets to it.

Rate

The client MUST immediately reduce its polling interval to that server and continue to reduce it each time it receives a RATE kiss code.

Trait Implementations

impl Clone for KissOfDeath[src]

impl Copy for KissOfDeath[src]

impl Debug for KissOfDeath[src]

impl Eq for KissOfDeath[src]

impl Hash for KissOfDeath[src]

impl PartialEq<KissOfDeath> for KissOfDeath[src]

impl StructuralEq for KissOfDeath[src]

impl StructuralPartialEq for KissOfDeath[src]

impl TryFrom<u32> for KissOfDeath[src]

type Err = Unrepresentable<u32>

The error type produced by a failed conversion.

Auto Trait Implementations

Blanket Implementations

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

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Scheme: ApproxScheme,
    Dst: ApproxFrom<Src, Scheme>, 
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

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

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

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[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<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

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<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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.

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.