Struct rustls::OtherError
source · pub struct OtherError(pub Arc<dyn StdError + Send + Sync>);
Expand description
Any other error that cannot be expressed by a more specific Error
variant.
For example, an OtherError
could be produced by a custom crypto provider
exposing a provider specific error.
Enums holding this type will never compare equal to each other.
Tuple Fields§
§0: Arc<dyn StdError + Send + Sync>
Trait Implementations§
source§impl Clone for OtherError
impl Clone for OtherError
source§fn clone(&self) -> OtherError
fn clone(&self) -> OtherError
Returns a copy 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 OtherError
impl Debug for OtherError
source§impl Display for OtherError
impl Display for OtherError
source§impl Error for OtherError
impl Error for OtherError
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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<OtherError> for Error
impl From<OtherError> for Error
source§fn from(value: OtherError) -> Self
fn from(value: OtherError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OtherError
impl !RefUnwindSafe for OtherError
impl Send for OtherError
impl Sync for OtherError
impl Unpin for OtherError
impl !UnwindSafe for OtherError
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