Struct s2n_quic_core::crypto::error::CryptoError
source · pub struct CryptoError {
pub reason: &'static str,
pub code: u8,
}Expand description
Error type for crypto-related errors
Fields§
§reason: &'static str§code: u8Implementations§
source§impl CryptoError
impl CryptoError
source§impl CryptoError
impl CryptoError
pub fn description(&self) -> Option<&'static str>
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 = _
Trait Implementations§
source§impl Clone for CryptoError
impl Clone for CryptoError
source§fn clone(&self) -> CryptoError
fn clone(&self) -> CryptoError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CryptoError
impl Debug for CryptoError
source§impl Display for CryptoError
impl Display for CryptoError
source§impl From<CryptoError> for Error
impl From<CryptoError> for Error
Implements conversion from crypto errors
See Error::crypto_error for more details
source§fn from(crypto_error: CryptoError) -> Self
fn from(crypto_error: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<CryptoError> for Error
impl From<CryptoError> for Error
source§fn from(error: CryptoError) -> Self
fn from(error: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<CryptoError> for ProcessingError
impl From<CryptoError> for ProcessingError
source§fn from(inner_error: CryptoError) -> Self
fn from(inner_error: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<DecoderError> for CryptoError
impl From<DecoderError> for CryptoError
source§fn from(_: DecoderError) -> Self
fn from(_: DecoderError) -> Self
Converts to this type from the input type.
source§impl Hash for CryptoError
impl Hash for CryptoError
source§impl Ord for CryptoError
impl Ord for CryptoError
source§fn cmp(&self, other: &CryptoError) -> Ordering
fn cmp(&self, other: &CryptoError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CryptoError
impl PartialEq for CryptoError
source§fn eq(&self, other: &CryptoError) -> bool
fn eq(&self, other: &CryptoError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CryptoError
impl PartialOrd for CryptoError
source§fn partial_cmp(&self, other: &CryptoError) -> Option<Ordering>
fn partial_cmp(&self, other: &CryptoError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for CryptoError
impl Eq for CryptoError
impl StructuralEq for CryptoError
impl StructuralPartialEq for CryptoError
Auto Trait Implementations§
impl RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl UnwindSafe for CryptoError
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