pub struct PrivateKeyError(pub Box<dyn Error + Send + Sync + 'static>);Expand description
Type-erased error returned by PrivateKey operations.
Wraps a Box<dyn Error + Send + Sync> in a named struct so that the
impl Error for PrivateKeyError bound needed by
CertificateSigner::Error
can be satisfied without ambiguity.
Tuple Fields§
§0: Box<dyn Error + Send + Sync + 'static>Implementations§
Trait Implementations§
Source§impl Debug for PrivateKeyError
impl Debug for PrivateKeyError
Source§impl Display for PrivateKeyError
impl Display for PrivateKeyError
Source§impl Error for PrivateKeyError
impl Error for PrivateKeyError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PrivateKeyError
impl !UnwindSafe for PrivateKeyError
impl Freeze for PrivateKeyError
impl Send for PrivateKeyError
impl Sync for PrivateKeyError
impl Unpin for PrivateKeyError
impl UnsafeUnpin for PrivateKeyError
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