pub enum TeeError<A, B>{
First(A),
Second(B),
Both {
first: A,
second: B,
},
}Expand description
Error from a Tee: one or both branches failed.
Variants§
Trait Implementations§
Source§impl<A, B> Error for TeeError<A, B>
impl<A, B> Error for TeeError<A, B>
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<A, B> Freeze for TeeError<A, B>
impl<A, B> RefUnwindSafe for TeeError<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for TeeError<A, B>
impl<A, B> Sync for TeeError<A, B>
impl<A, B> Unpin for TeeError<A, B>
impl<A, B> UnsafeUnpin for TeeError<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for TeeError<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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