Enum fltk::prelude::FltkErrorKind
source · #[non_exhaustive]pub enum FltkErrorKind {
FailedToRun,
FailedToLock,
FailedToSetScheme,
FailedOperation,
ResourceNotFound,
ImageFormatError,
TableError,
PrintError,
InvalidColor,
}
Expand description
Error kinds enum for FltkError
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.
FailedToRun
Failed to run the application
FailedToLock
Failed to initialize the multithreading
FailedToSetScheme
Failed to set the general scheme of the application
FailedOperation
Failed operation, mostly unknown reason!
ResourceNotFound
System resource (file, image) not found
ImageFormatError
Image format error when opening an image of an unsupported format
TableError
Error filling table
PrintError
Error due to printing
InvalidColor
Invalid color
Trait Implementations§
source§impl Clone for FltkErrorKind
impl Clone for FltkErrorKind
source§fn clone(&self) -> FltkErrorKind
fn clone(&self) -> FltkErrorKind
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 FltkErrorKind
impl Debug for FltkErrorKind
source§impl Hash for FltkErrorKind
impl Hash for FltkErrorKind
source§impl Ord for FltkErrorKind
impl Ord for FltkErrorKind
source§fn cmp(&self, other: &FltkErrorKind) -> Ordering
fn cmp(&self, other: &FltkErrorKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FltkErrorKind> for FltkErrorKind
impl PartialEq<FltkErrorKind> for FltkErrorKind
source§fn eq(&self, other: &FltkErrorKind) -> bool
fn eq(&self, other: &FltkErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FltkErrorKind> for FltkErrorKind
impl PartialOrd<FltkErrorKind> for FltkErrorKind
source§fn partial_cmp(&self, other: &FltkErrorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &FltkErrorKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FltkErrorKind
impl Eq for FltkErrorKind
impl StructuralEq for FltkErrorKind
impl StructuralPartialEq for FltkErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for FltkErrorKind
impl Send for FltkErrorKind
impl Sync for FltkErrorKind
impl Unpin for FltkErrorKind
impl UnwindSafe for FltkErrorKind
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