pub enum NtpServerError {
Protocol(ProtocolError),
Nts(NtsError),
Config(ConfigError),
Io(Error),
}Expand description
Errors that can occur during NTP server operations.
Variants§
Protocol(ProtocolError)
NTP protocol validation failure (malformed requests, unexpected fields).
Nts(NtsError)
NTS key establishment or authentication failure.
Config(ConfigError)
Invalid configuration (bad addresses, invalid TLS credentials).
Io(Error)
Underlying I/O error (socket bind, send/recv, etc.).
Trait Implementations§
Source§impl Debug for NtpServerError
impl Debug for NtpServerError
Source§impl Display for NtpServerError
impl Display for NtpServerError
Source§impl Error for NtpServerError
impl Error for NtpServerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for NtpServerError
impl From<ConfigError> for NtpServerError
Source§fn from(err: ConfigError) -> NtpServerError
fn from(err: ConfigError) -> NtpServerError
Converts to this type from the input type.
Source§impl From<Error> for NtpServerError
impl From<Error> for NtpServerError
Source§fn from(err: Error) -> NtpServerError
fn from(err: Error) -> NtpServerError
Converts to this type from the input type.
Source§impl From<NtpServerError> for Error
impl From<NtpServerError> for Error
Source§fn from(err: NtpServerError) -> Error
fn from(err: NtpServerError) -> Error
Converts to this type from the input type.
Source§impl From<NtsError> for NtpServerError
impl From<NtsError> for NtpServerError
Source§fn from(err: NtsError) -> NtpServerError
fn from(err: NtsError) -> NtpServerError
Converts to this type from the input type.
Source§impl From<ProtocolError> for NtpServerError
impl From<ProtocolError> for NtpServerError
Source§fn from(err: ProtocolError) -> NtpServerError
fn from(err: ProtocolError) -> NtpServerError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NtpServerError
impl !UnwindSafe for NtpServerError
impl Freeze for NtpServerError
impl Send for NtpServerError
impl Sync for NtpServerError
impl Unpin for NtpServerError
impl UnsafeUnpin for NtpServerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more