Enum sysfuss::EitherErr2
source · pub enum EitherErr2<T1, T2> {
First(T1),
Second(T2),
}Expand description
Multi-error convenience enum
Variants§
Implementations§
source§impl<T1, T2> EitherErr2<T1, T2>
impl<T1, T2> EitherErr2<T1, T2>
source§impl<T> EitherErr2<Infallible, T>
impl<T> EitherErr2<Infallible, T>
sourcepub fn map_infallible_first(self) -> T
pub fn map_infallible_first(self) -> T
Convert to non-infallible error
source§impl<T> EitherErr2<T, Infallible>
impl<T> EitherErr2<T, Infallible>
sourcepub fn map_infallible_second(self) -> T
pub fn map_infallible_second(self) -> T
Convert to non-infallible error
Trait Implementations§
source§impl<T1: Clone, T2: Clone> Clone for EitherErr2<T1, T2>
impl<T1: Clone, T2: Clone> Clone for EitherErr2<T1, T2>
source§fn clone(&self) -> EitherErr2<T1, T2>
fn clone(&self) -> EitherErr2<T1, T2>
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<T1: Error, T2: Error> Error for EitherErr2<T1, T2>
impl<T1: Error, T2: Error> Error for EitherErr2<T1, T2>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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()
Auto Trait Implementations§
impl<T1, T2> RefUnwindSafe for EitherErr2<T1, T2>where T1: RefUnwindSafe, T2: RefUnwindSafe,
impl<T1, T2> Send for EitherErr2<T1, T2>where T1: Send, T2: Send,
impl<T1, T2> Sync for EitherErr2<T1, T2>where T1: Sync, T2: Sync,
impl<T1, T2> Unpin for EitherErr2<T1, T2>where T1: Unpin, T2: Unpin,
impl<T1, T2> UnwindSafe for EitherErr2<T1, T2>where T1: UnwindSafe, T2: UnwindSafe,
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