pub enum NotError<T, E> {
Not(T),
Fatal(E),
}Expand description
A pipe that should have failed succeed
Variants§
Implementations§
Source§impl<T, E> NotError<T, E>
impl<T, E> NotError<T, E>
Sourcepub fn unwrap_not(self) -> Twhere
E: Debug,
pub fn unwrap_not(self) -> Twhere
E: Debug,
unwrap the successfull result
panics if self is NotError::Fatal
Trait Implementations§
Source§impl<O: Debug, E: Error> Error for NotError<O, E>
impl<O: Debug, E: Error> Error for NotError<O, E>
1.30.0 · 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()
impl<T: Copy, E: Copy> Copy for NotError<T, E>
impl<T: Eq, E: Eq> Eq for NotError<T, E>
impl<T, E> StructuralPartialEq for NotError<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for NotError<T, E>
impl<T, E> RefUnwindSafe for NotError<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for NotError<T, E>
impl<T, E> Sync for NotError<T, E>
impl<T, E> Unpin for NotError<T, E>
impl<T, E> UnwindSafe for NotError<T, E>where
T: UnwindSafe,
E: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more