pub enum Error {
TooShort,
NotAServerReply,
KissOfDeath([u8; 4]),
Unsynchronised,
NoTimestamp,
}Expand description
Why a reply was rejected.
Variants§
TooShort
Fewer than PACKET_LEN bytes.
NotAServerReply
Not a server (or broadcast) message.
KissOfDeath([u8; 4])
Stratum 0: a “Kiss-o’-Death” telling the client to back off. The
four-character code (e.g. RATE, DENY) is included.
Unsynchronised
Leap indicator 3: the server’s clock is not synchronised.
NoTimestamp
Transmit timestamp is zero.
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)