pub struct SslAlert(/* private fields */);Expand description
An SSL/TLS alert.
The same values are used both to signal an alert from a callback and to
identify an alert received from the peer via SslAlert::from_reason_code.
Implementations§
Source§impl SslAlert
impl SslAlert
pub const CLOSE_NOTIFY: SslAlert
pub const UNEXPECTED_MESSAGE: SslAlert
pub const BAD_RECORD_MAC: SslAlert
pub const DECRYPTION_FAILED: SslAlert
pub const RECORD_OVERFLOW: SslAlert
pub const DECOMPRESSION_FAILURE: SslAlert
pub const HANDSHAKE_FAILURE: SslAlert
pub const NO_CERTIFICATE: SslAlert
pub const BAD_CERTIFICATE: SslAlert
pub const UNSUPPORTED_CERTIFICATE: SslAlert
pub const CERTIFICATE_REVOKED: SslAlert
pub const CERTIFICATE_EXPIRED: SslAlert
pub const CERTIFICATE_UNKNOWN: SslAlert
pub const ILLEGAL_PARAMETER: SslAlert
pub const UNKNOWN_CA: SslAlert
pub const ACCESS_DENIED: SslAlert
pub const DECODE_ERROR: SslAlert
pub const DECRYPT_ERROR: SslAlert
pub const EXPORT_RESTRICTION: SslAlert
pub const PROTOCOL_VERSION: SslAlert
pub const INSUFFICIENT_SECURITY: SslAlert
pub const INTERNAL_ERROR: SslAlert
pub const INAPPROPRIATE_FALLBACK: SslAlert
pub const USER_CANCELLED: SslAlert
pub const NO_RENEGOTIATION: SslAlert
pub const MISSING_EXTENSION: SslAlert
pub const UNSUPPORTED_EXTENSION: SslAlert
pub const CERTIFICATE_UNOBTAINABLE: SslAlert
pub const UNRECOGNIZED_NAME: SslAlert
pub const BAD_CERTIFICATE_STATUS_RESPONSE: SslAlert
pub const BAD_CERTIFICATE_HASH_VALUE: SslAlert
pub const UNKNOWN_PSK_IDENTITY: SslAlert
pub const CERTIFICATE_REQUIRED: SslAlert
pub const NO_APPLICATION_PROTOCOL: SslAlert
Sourcepub fn reason_code(&self) -> c_int
pub fn reason_code(&self) -> c_int
Returns the error reason code reported by Error::reason_code when
this alert is received from the peer.
Sourcepub fn from_reason_code(reason: c_int) -> Option<SslAlert>
pub fn from_reason_code(reason: c_int) -> Option<SslAlert>
Returns the alert corresponding to an Error::reason_code, or None
if the reason code does not denote a received alert.
Trait Implementations§
impl Copy for SslAlert
impl Eq for SslAlert
impl StructuralPartialEq for SslAlert
Auto Trait Implementations§
impl Freeze for SslAlert
impl RefUnwindSafe for SslAlert
impl Send for SslAlert
impl Sync for SslAlert
impl Unpin for SslAlert
impl UnsafeUnpin for SslAlert
impl UnwindSafe for SslAlert
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