pub enum NtsError {
Show 16 variants
RecordTooShort {
expected: usize,
got: usize,
},
UnknownRecordType(u16),
InvalidBodyLength {
declared: usize,
available: usize,
},
KeError(u16),
KeWarning(u16),
MissingRecord(&'static str),
UnsupportedProtocol(u16),
UnsupportedAlgorithm(u16),
NoCookies,
EncryptionFailed,
DecryptionFailed,
InvalidCookie(String),
Tls(String),
Io(Error),
ExtensionTooShort {
expected: usize,
got: usize,
},
InvalidExtensionLength(u16),
}Variants§
RecordTooShort
UnknownRecordType(u16)
InvalidBodyLength
KeError(u16)
KeWarning(u16)
MissingRecord(&'static str)
UnsupportedProtocol(u16)
UnsupportedAlgorithm(u16)
NoCookies
EncryptionFailed
DecryptionFailed
InvalidCookie(String)
Tls(String)
Io(Error)
ExtensionTooShort
InvalidExtensionLength(u16)
Trait Implementations§
Source§impl Error for NtsError
impl Error for NtsError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for NtsError
impl !UnwindSafe for NtsError
impl Freeze for NtsError
impl Send for NtsError
impl Sync for NtsError
impl Unpin for NtsError
impl UnsafeUnpin 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