#[non_exhaustive]pub enum ErrorKind {
AlreadyRunning(AlreadyRunning),
ServicesOff(ServicesOff),
IO(Error),
Fmt(Error),
ParseInt(ParseIntError),
Utf8(FromUtf8Error),
Join(JoinError),
Custom(Box<dyn ErrorTrait + Send + Sync>),
}Expand description
The kind of an error that may happen when executing a terminal operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlreadyRunning(AlreadyRunning)
Terminal services already running.
ServicesOff(ServicesOff)
Event listener and/or renderer disconnected.
IO(Error)
This is an IO error.
Fmt(Error)
This is a formatting error.
ParseInt(ParseIntError)
This is an error from a bad integer parse attempt.
Utf8(FromUtf8Error)
This is an string from UTF-8 conversion error.
Join(JoinError)
This is an error from a bad join.
Custom(Box<dyn ErrorTrait + Send + Sync>)
A custom error, stored in a trait object.
Implementations§
Trait Implementations§
Source§impl From<AlreadyRunning> for ErrorKind
impl From<AlreadyRunning> for ErrorKind
Source§fn from(error: AlreadyRunning) -> Self
fn from(error: AlreadyRunning) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for ErrorKind
impl From<FromUtf8Error> for ErrorKind
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for ErrorKind
impl From<ParseIntError> for ErrorKind
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ServicesOff> for ErrorKind
impl From<ServicesOff> for ErrorKind
Source§fn from(error: ServicesOff) -> Self
fn from(error: ServicesOff) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl !UnwindSafe for ErrorKind
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