pub enum RunError<SErr> {
State(SErr),
TerminatedByControlStop,
Limit(LimitError),
Internal(InternalError),
File(InvalidFileError),
User(UserError),
Unsupported(UnsupportedError),
}Variants§
State(SErr)
TerminatedByControlStop
Limit(LimitError)
Internal(InternalError)
File(InvalidFileError)
User(UserError)
Unsupported(UnsupportedError)
Trait Implementations§
Source§impl<SErr> Error for RunError<SErr>
impl<SErr> Error for RunError<SErr>
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()
Source§impl<SErr> From<InternalError> for RunError<SErr>
impl<SErr> From<InternalError> for RunError<SErr>
Source§fn from(source: InternalError) -> Self
fn from(source: InternalError) -> Self
Converts to this type from the input type.
Source§impl<SErr> From<InvalidFileError> for RunError<SErr>
impl<SErr> From<InvalidFileError> for RunError<SErr>
Source§fn from(source: InvalidFileError) -> Self
fn from(source: InvalidFileError) -> Self
Converts to this type from the input type.
Source§impl<SErr> From<LimitError> for RunError<SErr>
impl<SErr> From<LimitError> for RunError<SErr>
Source§fn from(source: LimitError) -> Self
fn from(source: LimitError) -> Self
Converts to this type from the input type.
Source§impl<SErr> From<UnsupportedError> for RunError<SErr>
impl<SErr> From<UnsupportedError> for RunError<SErr>
Source§fn from(source: UnsupportedError) -> Self
fn from(source: UnsupportedError) -> Self
Converts to this type from the input type.
Source§impl<SErr: PartialOrd> PartialOrd for RunError<SErr>
impl<SErr: PartialOrd> PartialOrd for RunError<SErr>
impl<SErr: PartialEq> StructuralPartialEq for RunError<SErr>
Auto Trait Implementations§
impl<SErr> !Send for RunError<SErr>
impl<SErr> !Sync for RunError<SErr>
impl<SErr> Freeze for RunError<SErr>where
SErr: Freeze,
impl<SErr> RefUnwindSafe for RunError<SErr>where
SErr: RefUnwindSafe,
impl<SErr> Unpin for RunError<SErr>where
SErr: Unpin,
impl<SErr> UnsafeUnpin for RunError<SErr>where
SErr: UnsafeUnpin,
impl<SErr> UnwindSafe for RunError<SErr>where
SErr: 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