#[non_exhaustive]#[repr(u32)]pub enum RustlsDiagnostic {
Protocol = 1,
Certificate = 2,
ServerName = 3,
Truncated = 4,
Capacity = 5,
CallerState = 6,
}Expand description
Stable rustls-specific code retained in a Bornera transport diagnostic.
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.
Protocol = 1
TLS framing, cryptography, alerts, or negotiation failed.
Certificate = 2
Peer certificate validation failed.
ServerName = 3
The verifier rejected the logical server-name type.
Truncated = 4
Raw transport EOF arrived without authenticated TLS closure.
Capacity = 5
Rustls logical input or output exceeded its configured bound.
CallerState = 6
The caller requested an operation outside the session lifecycle.
Implementations§
Trait Implementations§
Source§impl Clone for RustlsDiagnostic
impl Clone for RustlsDiagnostic
impl Copy for RustlsDiagnostic
Source§impl Debug for RustlsDiagnostic
impl Debug for RustlsDiagnostic
impl Eq for RustlsDiagnostic
Source§impl PartialEq for RustlsDiagnostic
impl PartialEq for RustlsDiagnostic
impl StructuralPartialEq for RustlsDiagnostic
Auto Trait Implementations§
impl Freeze for RustlsDiagnostic
impl RefUnwindSafe for RustlsDiagnostic
impl Send for RustlsDiagnostic
impl Sync for RustlsDiagnostic
impl Unpin for RustlsDiagnostic
impl UnsafeUnpin for RustlsDiagnostic
impl UnwindSafe for RustlsDiagnostic
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