Struct openssl::ssl::ErrorCode [−][src]
pub struct ErrorCode(_);
An error code returned from SSL functions.
Methods
impl ErrorCode
[src]
impl ErrorCode
pub fn from_raw(raw: c_int) -> ErrorCode
[src]
pub fn from_raw(raw: c_int) -> ErrorCode
pub fn as_raw(&self) -> c_int
[src]
pub fn as_raw(&self) -> c_int
pub const ZERO_RETURN: ErrorCode
ZERO_RETURN: ErrorCode = ErrorCode(ffi::SSL_ERROR_ZERO_RETURN)
The SSL session has been closed.
pub const WANT_READ: ErrorCode
WANT_READ: ErrorCode = ErrorCode(ffi::SSL_ERROR_WANT_READ)
An attempt to read data from the underlying socket returned WouldBlock
.
Wait for read readiness and retry the operation.
pub const WANT_WRITE: ErrorCode
WANT_WRITE: ErrorCode = ErrorCode(ffi::SSL_ERROR_WANT_WRITE)
An attempt to write data to the underlying socket returned WouldBlock
.
Wait for write readiness and retry the operation.
pub const SYSCALL: ErrorCode
SYSCALL: ErrorCode = ErrorCode(ffi::SSL_ERROR_SYSCALL)
A non-recoverable IO error occurred.
pub const SSL: ErrorCode
SSL: ErrorCode = ErrorCode(ffi::SSL_ERROR_SSL)
An error occurred in the SSL library.
Trait Implementations
impl Debug for ErrorCode
[src]
impl Debug for ErrorCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for ErrorCode
[src]
impl Copy for ErrorCode
impl Clone for ErrorCode
[src]
impl Clone for ErrorCode
fn clone(&self) -> ErrorCode
[src]
fn clone(&self) -> ErrorCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ErrorCode
[src]
impl PartialEq for ErrorCode
fn eq(&self, other: &ErrorCode) -> bool
[src]
fn eq(&self, other: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ErrorCode) -> bool
[src]
fn ne(&self, other: &ErrorCode) -> bool
This method tests for !=
.
impl Eq for ErrorCode
[src]
impl Eq for ErrorCode