#[non_exhaustive]#[repr(u32)]pub enum dtls_alert_t {
Show 22 variants
DTLS_ALERT_CLOSE_NOTIFY = 0,
DTLS_ALERT_UNEXPECTED_MESSAGE = 10,
DTLS_ALERT_BAD_RECORD_MAC = 20,
DTLS_ALERT_RECORD_OVERFLOW = 22,
DTLS_ALERT_DECOMPRESSION_FAILURE = 30,
DTLS_ALERT_HANDSHAKE_FAILURE = 40,
DTLS_ALERT_BAD_CERTIFICATE = 42,
DTLS_ALERT_UNSUPPORTED_CERTIFICATE = 43,
DTLS_ALERT_CERTIFICATE_REVOKED = 44,
DTLS_ALERT_CERTIFICATE_EXPIRED = 45,
DTLS_ALERT_CERTIFICATE_UNKNOWN = 46,
DTLS_ALERT_ILLEGAL_PARAMETER = 47,
DTLS_ALERT_UNKNOWN_CA = 48,
DTLS_ALERT_ACCESS_DENIED = 49,
DTLS_ALERT_DECODE_ERROR = 50,
DTLS_ALERT_DECRYPT_ERROR = 51,
DTLS_ALERT_PROTOCOL_VERSION = 70,
DTLS_ALERT_INSUFFICIENT_SECURITY = 71,
DTLS_ALERT_INTERNAL_ERROR = 80,
DTLS_ALERT_USER_CANCELED = 90,
DTLS_ALERT_NO_RENEGOTIATION = 100,
DTLS_ALERT_UNSUPPORTED_EXTENSION = 110,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DTLS_ALERT_CLOSE_NOTIFY = 0
DTLS_ALERT_UNEXPECTED_MESSAGE = 10
DTLS_ALERT_BAD_RECORD_MAC = 20
DTLS_ALERT_RECORD_OVERFLOW = 22
DTLS_ALERT_DECOMPRESSION_FAILURE = 30
DTLS_ALERT_HANDSHAKE_FAILURE = 40
DTLS_ALERT_BAD_CERTIFICATE = 42
DTLS_ALERT_UNSUPPORTED_CERTIFICATE = 43
DTLS_ALERT_CERTIFICATE_REVOKED = 44
DTLS_ALERT_CERTIFICATE_EXPIRED = 45
DTLS_ALERT_CERTIFICATE_UNKNOWN = 46
DTLS_ALERT_ILLEGAL_PARAMETER = 47
DTLS_ALERT_UNKNOWN_CA = 48
DTLS_ALERT_ACCESS_DENIED = 49
DTLS_ALERT_DECODE_ERROR = 50
DTLS_ALERT_DECRYPT_ERROR = 51
DTLS_ALERT_PROTOCOL_VERSION = 70
DTLS_ALERT_INSUFFICIENT_SECURITY = 71
DTLS_ALERT_INTERNAL_ERROR = 80
DTLS_ALERT_USER_CANCELED = 90
DTLS_ALERT_NO_RENEGOTIATION = 100
DTLS_ALERT_UNSUPPORTED_EXTENSION = 110
Trait Implementations§
Source§impl Clone for dtls_alert_t
impl Clone for dtls_alert_t
Source§fn clone(&self) -> dtls_alert_t
fn clone(&self) -> dtls_alert_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for dtls_alert_t
Source§impl Debug for dtls_alert_t
impl Debug for dtls_alert_t
impl Eq for dtls_alert_t
Source§impl Hash for dtls_alert_t
impl Hash for dtls_alert_t
Source§impl PartialEq for dtls_alert_t
impl PartialEq for dtls_alert_t
Source§fn eq(&self, other: &dtls_alert_t) -> bool
fn eq(&self, other: &dtls_alert_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for dtls_alert_t
Auto Trait Implementations§
impl Freeze for dtls_alert_t
impl RefUnwindSafe for dtls_alert_t
impl Send for dtls_alert_t
impl Sync for dtls_alert_t
impl Unpin for dtls_alert_t
impl UnsafeUnpin for dtls_alert_t
impl UnwindSafe for dtls_alert_t
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