#[non_exhaustive]pub enum CommonErrorType {
Show 20 variants
ExitLoop,
DisplaySizeTooSmall,
General,
InvalidArguments,
InvalidResult,
InvalidState,
StackOverflow,
StackUnderflow,
ParsingError,
IOError,
ValueOutOfRange,
InvalidValue,
DoesNotApply,
IndexOutOfBounds,
InvalidRgbColor,
InvalidHexColorFormat,
NotFound,
CommandExecutionError,
ConfigFolderCountNotBeCreated,
ConfigFolderPathCouldNotBeGenerated,
}
Expand description
Some common errors that can occur.
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.
ExitLoop
DisplaySizeTooSmall
General
InvalidArguments
InvalidResult
InvalidState
StackOverflow
StackUnderflow
ParsingError
IOError
ValueOutOfRange
InvalidValue
DoesNotApply
IndexOutOfBounds
InvalidRgbColor
InvalidHexColorFormat
NotFound
CommandExecutionError
ConfigFolderCountNotBeCreated
ConfigFolderPathCouldNotBeGenerated
Trait Implementations§
source§impl Clone for CommonErrorType
impl Clone for CommonErrorType
source§fn clone(&self) -> CommonErrorType
fn clone(&self) -> CommonErrorType
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 Debug for CommonErrorType
impl Debug for CommonErrorType
source§impl Default for CommonErrorType
impl Default for CommonErrorType
source§fn default() -> CommonErrorType
fn default() -> CommonErrorType
Returns the “default value” for a type. Read more
impl Copy for CommonErrorType
Auto Trait Implementations§
impl Freeze for CommonErrorType
impl RefUnwindSafe for CommonErrorType
impl Send for CommonErrorType
impl Sync for CommonErrorType
impl Unpin for CommonErrorType
impl UnwindSafe for CommonErrorType
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