Struct variant_ssl::ssl::ErrorCode
source · pub struct ErrorCode(/* private fields */);
Expand description
An error code returned from SSL functions.
Implementations§
source§impl ErrorCode
impl ErrorCode
sourcepub const ZERO_RETURN: ErrorCode = _
pub const ZERO_RETURN: ErrorCode = _
The SSL session has been closed.
sourcepub const WANT_ASYNC: ErrorCode = _
pub const WANT_ASYNC: ErrorCode = _
The operation did not complete because an asynchronous engine is still processing data.
This will only occur if the mode has been set to SSL_MODE_ASYNC.
Wait for async engine by using async job APIs and retry the operation.
sourcepub const WANT_ASYNC_JOB: ErrorCode = _
pub const WANT_ASYNC_JOB: ErrorCode = _
The asynchronous job could not be started because there were no async jobs available in the pool.
This will only occur if the mode has been set to SSL_MODE_ASYNC.
Retry the operation after a currently executing asynchronous operation for the current thread has completed
sourcepub const WANT_READ: ErrorCode = _
pub const WANT_READ: ErrorCode = _
An attempt to read data from the underlying socket returned WouldBlock
.
Wait for read readiness and retry the operation.
sourcepub const WANT_WRITE: ErrorCode = _
pub const WANT_WRITE: ErrorCode = _
An attempt to write data to the underlying socket returned WouldBlock
.
Wait for write readiness and retry the operation.
sourcepub const WANT_CLIENT_HELLO_CB: ErrorCode = _
pub const WANT_CLIENT_HELLO_CB: ErrorCode = _
The client hello callback indicated that it needed to be retried.
Requires OpenSSL 1.1.1 or newer.