pub struct Error {
pub reason: &'static str,
pub code: u8,
}Expand description
Error type for TLS-related errors
Fields§
§reason: &'static str§code: u8Implementations§
Source§impl Error
impl Error
pub const CLOSE_NOTIFY: Self
pub const UNEXPECTED_MESSAGE: Self
pub const BAD_RECORD_MAC: Self
pub const DECRYPTION_FAILED_RESERVED: Self
pub const RECORD_OVERFLOW: Self
pub const DECOMPRESSION_FAILURE_RESERVED: Self
pub const HANDSHAKE_FAILURE: Self
pub const NO_CERTIFICATE_RESERVED: Self
pub const BAD_CERTIFICATE: Self
pub const UNSUPPORTED_CERTIFICATE: Self
pub const CERTIFICATE_REVOKED: Self
pub const CERTIFICATE_EXPIRED: Self
pub const CERTIFICATE_UNKNOWN: Self
pub const ILLEGAL_PARAMETER: Self
pub const UNKNOWN_CA: Self
pub const ACCESS_DENIED: Self
pub const DECODE_ERROR: Self
pub const DECRYPT_ERROR: Self
pub const EXPORT_RESTRICTION_RESERVED: Self
pub const PROTOCOL_VERSION: Self
pub const INSUFFICIENT_SECURITY: Self
pub const INTERNAL_ERROR: Self
pub const INAPPROPRIATE_FALLBACK: Self
pub const USER_CANCELED: Self
pub const NO_RENEGOTIATION_RESERVED: Self
pub const MISSING_EXTENSION: Self
pub const UNSUPPORTED_EXTENSION: Self
pub const CERTIFICATE_UNOBTAINABLE_RESERVED: Self
pub const UNRECOGNIZED_NAME: Self
pub const BAD_CERTIFICATE_STATUS_RESPONSE: Self
pub const BAD_CERTIFICATE_HASH_VALUE_RESERVED: Self
pub const UNKNOWN_PSK_IDENTITY: Self
pub const CERTIFICATE_REQUIRED: Self
pub const NO_APPLICATION_PROTOCOL: Self
pub fn description(&self) -> Option<&'static str>
Trait Implementations§
Source§impl From<DecoderError> for Error
impl From<DecoderError> for Error
Source§fn from(_: DecoderError) -> Self
fn from(_: DecoderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
Implements conversion from TLS errors
See Error::crypto_error for more details
impl From<Error> for Error
Implements conversion from TLS errors
See Error::crypto_error for more details
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
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 UnwindSafe for Error
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