pub struct ErrorStack(/* private fields */);Expand description
Collection of Errors from OpenSSL.
Implementations§
Source§impl ErrorStack
impl ErrorStack
Sourcepub fn get() -> ErrorStack
pub fn get() -> ErrorStack
Pops the contents of the OpenSSL error stack, and returns it.
This corresponds to ERR_get_error_line_data.
Sourcepub fn put(&self)
pub fn put(&self)
Pushes the errors back onto the OpenSSL error stack.
This corresponds to ERR_put_error.
Trait Implementations§
Source§impl Clone for ErrorStack
impl Clone for ErrorStack
Source§fn clone(&self) -> ErrorStack
fn clone(&self) -> ErrorStack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorStack
impl Debug for ErrorStack
Source§impl Display for ErrorStack
impl Display for ErrorStack
Source§impl Error for ErrorStack
impl Error for ErrorStack
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
Source§fn from(e: ErrorStack) -> Error
fn from(e: ErrorStack) -> Error
Converts to this type from the input type.
Source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
Source§fn from(_: ErrorStack) -> Error
fn from(_: ErrorStack) -> Error
Converts to this type from the input type.
Source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
Source§fn from(e: ErrorStack) -> Error
fn from(e: ErrorStack) -> Error
Converts to this type from the input type.
Source§impl<S> From<ErrorStack> for HandshakeError<S>
impl<S> From<ErrorStack> for HandshakeError<S>
Source§fn from(e: ErrorStack) -> HandshakeError<S>
fn from(e: ErrorStack) -> HandshakeError<S>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorStack
impl RefUnwindSafe for ErrorStack
impl Send for ErrorStack
impl Sync for ErrorStack
impl Unpin for ErrorStack
impl UnwindSafe for ErrorStack
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