pub enum Error {
Show 15 variants
Io(Error),
Tls(String),
KeyExchange(String),
Protocol(String),
InvalidResponse(String),
Timeout,
InvalidConfig(String),
ServerUnavailable(String),
AuthenticationFailed(String),
MissingNtsCookie,
MissingAuthenticator,
AeadVerificationFailed(String),
MalformedNtsExtension(String),
NoCookiesReturned,
Other(String),
}Expand description
Errors that can occur during NTS client operations.
Variants§
Io(Error)
Network I/O error.
Tls(String)
TLS/connection error during NTS key exchange.
KeyExchange(String)
NTS key exchange failed.
Protocol(String)
NTP protocol error.
InvalidResponse(String)
Invalid server response.
Timeout
Timeout occurred during operation.
InvalidConfig(String)
Invalid configuration.
Server not available or unreachable.
AuthenticationFailed(String)
Authentication failed.
MissingNtsCookie
Missing NTS cookie.
MissingAuthenticator
Missing NTS authenticator.
AeadVerificationFailed(String)
AEAD verification failed.
MalformedNtsExtension(String)
Malformed NTS extension fields.
NoCookiesReturned
No cookies returned when requested.
Other(String)
Generic error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<KeyExchangeError> for Error
Convert KeyExchangeError to our Error type
impl From<KeyExchangeError> for Error
Convert KeyExchangeError to our Error type
Source§fn from(err: KeyExchangeError) -> Self
fn from(err: KeyExchangeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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