[][src]Enum rsntp::ProtocolError

pub enum ProtocolError {
    PacketIsTooShort,
    InvalidPacketVersion,
    InvalidLeapIndicator,
    InvalidMode,
    InvalidOriginateTimestamp,
    InvalidTransmitTimestamp,
    InvalidReferenceIdentifier,
    KissODeath(KissCode),
}

A detailed information about SNTP protocol related errors.

This is a more detailed description of the error and can be used by clients which needs a more elaborate information about the reason of the failure.

Variants

PacketIsTooShort

Server reply packet is too short

InvalidPacketVersion

Server reply packet has unsupported version

InvalidLeapIndicator

Server reply packet contains invalid leap indicator

InvalidMode

Server reply packet contains invalid mode

InvalidOriginateTimestamp

Server reply contains invalid originate timestamp

InvalidTransmitTimestamp

Server reply contains invalid transmit timestamp

InvalidReferenceIdentifier

Server reply contains invalid reference identifier

KissODeath(KissCode)

Kiss-o'-Death packet received. KoD indicates that the server rejected the request and generally means that the client should stop sending request to the server.

Trait Implementations

impl Clone for ProtocolError[src]

impl Copy for ProtocolError[src]

impl Debug for ProtocolError[src]

impl Display for ProtocolError[src]

impl Eq for ProtocolError[src]

impl Error for ProtocolError[src]

impl From<ProtocolError> for SynchroniztationError[src]

impl Hash for ProtocolError[src]

impl PartialEq<ProtocolError> for ProtocolError[src]

impl StructuralEq for ProtocolError[src]

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