pub enum Downcast<'e, A: 'static, E: Error + 'static, K: UniKind> {
DisplayRef(&'e A),
ErrorRef(&'e E),
UniError(UniError<K>),
}Expand description
A reference to a downcasted error.
Variants§
DisplayRef(&'e A)
A reference to a downcasted error for all non-std::error::Error types
ErrorRef(&'e E)
A reference to a downcasted error that implements std::error::Error.
UniError(UniError<K>)
A UniError<K>. Not actually downcasted, but reconstructed.
Auto Trait Implementations§
impl<'e, A, E, K> Freeze for Downcast<'e, A, E, K>
impl<'e, A, E, K> !RefUnwindSafe for Downcast<'e, A, E, K>
impl<'e, A, E, K> Send for Downcast<'e, A, E, K>
impl<'e, A, E, K> Sync for Downcast<'e, A, E, K>
impl<'e, A, E, K> Unpin for Downcast<'e, A, E, K>
impl<'e, A, E, K> !UnwindSafe for Downcast<'e, A, E, K>
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