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_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: i32) -> ErrorCode
pub fn as_raw(&self) -> i32
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)