pub struct DowncastError { /* private fields */ }Expand description
A failed Error::downcast, carrying the original error back.
Deliberately not an error type itself: the only way past it is
into_error, so the original error cannot be
replaced by a shell describing the failure through ? or .into().
Implementations§
Source§impl DowncastError
impl DowncastError
Sourcepub fn failure(&self) -> DowncastFailure
pub fn failure(&self) -> DowncastFailure
Why the downcast failed.
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Hands the original error back.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DowncastError
impl !UnwindSafe for DowncastError
impl Freeze for DowncastError
impl Send for DowncastError
impl Sync for DowncastError
impl Unpin for DowncastError
impl UnsafeUnpin for DowncastError
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