pub struct IntoInnerError<W, Io>(/* private fields */);Expand description
An error returned by EncryptBufWriter::into_inner which combines an error that happened
while writing out the buffer, and the buffered writer object which may be used to recover
from the condition.
Implementations§
Source§impl<W, Io> IntoInnerError<W, Io>
impl<W, Io> IntoInnerError<W, Io>
Sourcepub fn error(&self) -> &Error<Io>
pub fn error(&self) -> &Error<Io>
Returns the error which caused the call to EncryptBufWriter::into_inner() to fail.
This error was returned when attempting to write the internal buffer.
Sourcepub fn into_writer(self) -> W
pub fn into_writer(self) -> W
Returns the buffered writer instance which generated the error. The returned object can be used for error recovery, such as re-inspecting the buffer.
Sourcepub fn into_error(self) -> Error<Io>
pub fn into_error(self) -> Error<Io>
Consumes the IntoInnerError and returns the error which caused the call to
EncryptBufWriter::into_inner() to fail. Unlike error, this can be used to obtain
ownership of the underlying error.
Sourcepub fn into_parts(self) -> (W, Error<Io>)
pub fn into_parts(self) -> (W, Error<Io>)
Consumes the IntoInnerError and returns the error which caused the call to
EncryptBufWriter::into_inner() to fail, and the underlying writer. This can be used
to simply obtain ownership of the underlying error; it can also be used for advanced
error recovery.
Trait Implementations§
Source§impl<W: Clone, Io: Clone> Clone for IntoInnerError<W, Io>
impl<W: Clone, Io: Clone> Clone for IntoInnerError<W, Io>
Source§fn clone(&self) -> IntoInnerError<W, Io>
fn clone(&self) -> IntoInnerError<W, Io>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more