pub struct ErrorCode(/* private fields */);Available on crate feature
tls only.Expand description
SSL_ERROR_* error code returned from SSL functions.
This is different than packed error codes.
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.
pub const WANT_X509_LOOKUP: ErrorCode
pub const PENDING_SESSION: ErrorCode
pub const PENDING_CERTIFICATE: ErrorCode
pub const WANT_CERTIFICATE_VERIFY: ErrorCode
pub const WANT_PRIVATE_KEY_OPERATION: ErrorCode
pub const PENDING_TICKET: ErrorCode
Sourcepub fn from_raw(raw: i32) -> ErrorCode
pub fn from_raw(raw: i32) -> ErrorCode
Wrap an SSL_ERROR_* error code.
This is different than packed error codes.
Sourcepub fn as_raw(&self) -> i32
pub fn as_raw(&self) -> i32
An SSL_ERROR_* error code.
This is different than packed error codes.
Sourcepub fn description(self) -> Option<&'static str>
pub fn description(self) -> Option<&'static str>
This corresponds to SSL_error_description.
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more