pub struct ErrorCode(_);
Expand description
An error code returned from SSL functions.
Implementations
sourceimpl 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: c_int) -> ErrorCode
pub fn as_raw(&self) -> c_int
Trait Implementations
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more