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.
pub fn from_raw(raw: c_int) -> ErrorCode
pub fn as_raw(&self) -> c_int
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
§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
§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)
clone_to_uninit)