pub enum NtsError {
MissingExtension {
field: &'static str,
},
CookieDecryptionFailed,
AuthenticatorParseFailed,
AuthenticationFailed,
KeyExportFailed {
detail: String,
},
KeyStorePoisoned,
UnrecognizedCriticalRecord {
record_type: u16,
},
MissingNextProtocol,
Other(String),
}Expand description
NTS (Network Time Security) server-side errors.
These cover NTS-KE negotiation failures, cookie decryption errors, and AEAD authentication failures encountered while processing NTS-authenticated NTP requests.
Variants§
MissingExtension
Missing required NTS extension field in client request.
CookieDecryptionFailed
Failed to decrypt NTS cookie (expired or invalid master key).
AuthenticatorParseFailed
Failed to parse NTS Authenticator extension field.
AuthenticationFailed
NTS AEAD authentication failed (C2S key verification).
KeyExportFailed
TLS key export failed during NTS-KE.
KeyStorePoisoned
Master key store lock poisoned.
UnrecognizedCriticalRecord
Unrecognized critical NTS-KE record from client.
MissingNextProtocol
Client did not send a supported Next Protocol (NTPv4).
Other(String)
Generic NTS error.
Trait Implementations§
Source§impl Error for NtsError
impl Error for NtsError
1.30.0 · 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<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.
Auto Trait Implementations§
impl Freeze for NtsError
impl RefUnwindSafe for NtsError
impl Send for NtsError
impl Sync for NtsError
impl Unpin for NtsError
impl UnsafeUnpin for NtsError
impl UnwindSafe for NtsError
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