pub enum Error {
Server(Alert),
Client(Alert),
UnexpectedDisconnect,
TcpTimeout,
StateTimeout(State),
NotConnected,
}
Expand description
TLS errors.
When an error occurs the connection is either reset or disconnecting.
After the connection has disconnected the next call to Client::process
will create a new connection.
Variants§
Server(Alert)
Alert sent from the server.
Client(Alert)
Alert sent by the client.
UnexpectedDisconnect
Unexpected TCP disconnection.
TcpTimeout
TCP connection timeout.
StateTimeout(State)
A timeout occurred while waiting for the client to transition from this state.
NotConnected
Tried to write with Client::writer
or Client::write_all
before
the handshake has completed.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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