pub enum SslIoError {
WantRead,
WantWrite,
ZeroReturn,
Syscall(ErrorStack),
Ssl(ErrorStack),
Other(i32),
}Expand description
Error returned by non-blocking SSL I/O operations.
WantRead / WantWrite indicate that the operation should be retried
after the underlying BIO becomes ready. For in-memory BIO pairs, retrying
immediately after driving the peer is sufficient.
Variants§
WantRead
Retry after data arrives on the read BIO (SSL_ERROR_WANT_READ).
WantWrite
Retry after the write BIO drains (SSL_ERROR_WANT_WRITE).
ZeroReturn
The peer closed the connection cleanly (SSL_ERROR_ZERO_RETURN).
Syscall(ErrorStack)
Underlying I/O error; see ErrorStack for details (SSL_ERROR_SYSCALL).
Ssl(ErrorStack)
OpenSSL protocol error (SSL_ERROR_SSL).
Other(i32)
Unexpected error code returned by SSL_get_error.
Trait Implementations§
Source§impl Debug for SslIoError
impl Debug for SslIoError
Source§impl Display for SslIoError
impl Display for SslIoError
Source§impl Error for SslIoError
impl Error for SslIoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SslIoError
impl RefUnwindSafe for SslIoError
impl Send for SslIoError
impl Sync for SslIoError
impl Unpin for SslIoError
impl UnwindSafe for SslIoError
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