pub struct OwnedError(/* private fields */);Expand description
An error from readpassphrase_owned.
This wraps Error but also contains the passed buffer, accessible via OwnedError::take.
Implementations§
Trait Implementations§
Source§impl Debug for OwnedError
impl Debug for OwnedError
Source§impl Display for OwnedError
impl Display for OwnedError
Source§impl Drop for OwnedError
impl Drop for OwnedError
Source§impl Error for OwnedError
impl Error for OwnedError
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<OwnedError> for Error
impl From<OwnedError> for Error
Source§fn from(value: OwnedError) -> Self
fn from(value: OwnedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedError
impl !RefUnwindSafe for OwnedError
impl Send for OwnedError
impl Sync for OwnedError
impl Unpin for OwnedError
impl !UnwindSafe for OwnedError
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