pub enum TlsError {
NotConnected,
Closed,
HandshakeError,
DecryptionFailed,
AlertReceived(AlertDescription),
InvalidState,
BufferTooSmall,
DataTooLarge,
}Expand description
TLS connection errors
Variants§
NotConnected
Handshake not completed
Closed
Connection already closed
HandshakeError
Handshake failure
DecryptionFailed
Record decryption failed
AlertReceived(AlertDescription)
Alert received from peer
InvalidState
Invalid state transition
BufferTooSmall
Buffer too small
DataTooLarge
Data too large for single record
Trait Implementations§
impl Copy for TlsError
impl Eq for TlsError
impl StructuralPartialEq for TlsError
Auto Trait Implementations§
impl Freeze for TlsError
impl RefUnwindSafe for TlsError
impl Send for TlsError
impl Sync for TlsError
impl Unpin for TlsError
impl UnwindSafe for TlsError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)