Enum scsys_core::errors::ErrorKind
source · #[non_exhaustive]pub enum ErrorKind {
Async,
Connection,
Error(ExternalError),
Execution,
IO,
Operation(OperationalError),
Parse,
Process,
Runtime,
Syntax,
}
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.
Async
Connection
Error(ExternalError)
Execution
IO
Operation(OperationalError)
Parse
Process
Runtime
Syntax
Implementations§
source§impl ErrorKind
impl ErrorKind
sourcepub const fn is_async(&self) -> bool
pub const fn is_async(&self) -> bool
Returns true if the enum is ErrorKind::Async otherwise false
sourcepub const fn is_connection(&self) -> bool
pub const fn is_connection(&self) -> bool
Returns true if the enum is ErrorKind::Connection otherwise false
sourcepub const fn is_error(&self) -> bool
pub const fn is_error(&self) -> bool
Returns true if the enum is ErrorKind::Error otherwise false
sourcepub const fn is_execution(&self) -> bool
pub const fn is_execution(&self) -> bool
Returns true if the enum is ErrorKind::Execution otherwise false
sourcepub const fn is_operation(&self) -> bool
pub const fn is_operation(&self) -> bool
Returns true if the enum is ErrorKind::Operation otherwise false
sourcepub const fn is_parse(&self) -> bool
pub const fn is_parse(&self) -> bool
Returns true if the enum is ErrorKind::Parse otherwise false
sourcepub const fn is_process(&self) -> bool
pub const fn is_process(&self) -> bool
Returns true if the enum is ErrorKind::Process otherwise false
sourcepub const fn is_runtime(&self) -> bool
pub const fn is_runtime(&self) -> bool
Returns true if the enum is ErrorKind::Runtime otherwise false
Trait Implementations§
source§impl From<ExternalError> for ErrorKind
impl From<ExternalError> for ErrorKind
source§fn from(kind: ExternalError) -> Self
fn from(kind: ExternalError) -> Self
Converts to this type from the input type.
source§impl From<OperationalError> for ErrorKind
impl From<OperationalError> for ErrorKind
source§fn from(kind: OperationalError) -> Self
fn from(kind: OperationalError) -> Self
Converts to this type from the input type.
source§impl IntoEnumIterator for ErrorKind
impl IntoEnumIterator for ErrorKind
type Iterator = ErrorKindIter
fn iter() -> ErrorKindIter ⓘ
source§impl Ord for ErrorKind
impl Ord for ErrorKind
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
source§impl PartialOrd for ErrorKind
impl PartialOrd for ErrorKind
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 moresource§impl VariantNames for ErrorKind
impl VariantNames for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin 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