pub struct CryptoError {
pub alert: u8,
pub reason: &'static str,
}Expand description
A TLS alert raised by the handshake; sent as CRYPTO_ERROR (0x100 + alert).
Fields§
§alert: u8§reason: &'static strTrait Implementations§
Source§impl Clone for CryptoError
impl Clone for CryptoError
impl Copy for CryptoError
Source§impl Debug for CryptoError
impl Debug for CryptoError
impl Eq for CryptoError
Source§impl From<CryptoError> for TransportError
impl From<CryptoError> for TransportError
Source§fn from(e: CryptoError) -> Self
fn from(e: CryptoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CryptoError
impl PartialEq for CryptoError
impl StructuralPartialEq for CryptoError
Auto Trait Implementations§
impl Forget for CryptoError
impl Freeze for CryptoError
impl Move for CryptoError
impl RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl UnsafeUnpin 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