pub struct OtherError(pub Arc<dyn StdError + Send + Sync>);展开描述
Any other error that cannot be expressed by 一个 more specific Error variant.
For example, an OtherError could be produced by 一个 custom crypto provider
exposing 一个 provider specific error.
Enums holding this type will never compare equal 到 each other.
Tuple Fields§
§0: Arc<dyn StdError + Send + Sync>Trait 实现§
Source§impl Clone for OtherError
impl Clone for OtherError
Source§fn clone(&self) -> OtherError
fn clone(&self) -> OtherError
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for OtherError
impl Debug for OtherError
Source§impl Display for OtherError
impl Display for OtherError
Source§impl Error for OtherError
Available on crate feature std only.
impl Error for OtherError
Available on crate feature
std only.Source§impl From<OtherError> for Error
impl From<OtherError> for Error
Source§fn from(value: OtherError) -> Self
fn from(value: OtherError) -> Self
从输入类型转换为此类型。
自动 Trait 实现§
impl Freeze for OtherError
impl !RefUnwindSafe for OtherError
impl Send for OtherError
impl Sync for OtherError
impl Unpin for OtherError
impl UnsafeUnpin for OtherError
impl !UnwindSafe for OtherError
Blanket 实现§
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 从 an owned value. 更多信息