Enum scsys_core::errors::Errors
source · #[non_exhaustive]pub enum Errors<T = String> {
Async,
Connection,
Error(ExternalError<T>),
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<T>)
Execution
IO
Operation(OperationalError)
Parse
Process
Runtime
Syntax
Implementations§
source§impl<T> Errors<T>
impl<T> Errors<T>
sourcepub const fn is_connection(&self) -> bool
pub const fn is_connection(&self) -> bool
Returns true if the enum is Errors::Connection otherwise false
sourcepub const fn is_execution(&self) -> bool
pub const fn is_execution(&self) -> bool
Returns true if the enum is Errors::Execution otherwise false
sourcepub const fn is_operation(&self) -> bool
pub const fn is_operation(&self) -> bool
Returns true if the enum is Errors::Operation otherwise false
sourcepub const fn is_process(&self) -> bool
pub const fn is_process(&self) -> bool
Returns true if the enum is Errors::Process otherwise false
sourcepub const fn is_runtime(&self) -> bool
pub const fn is_runtime(&self) -> bool
Returns true if the enum is Errors::Runtime otherwise false
Trait Implementations§
source§impl From<ExternalError> for Errors
impl From<ExternalError> for Errors
source§fn from(kind: ExternalError) -> Self
fn from(kind: ExternalError) -> Self
Converts to this type from the input type.
source§impl From<OperationalError> for Errors
impl From<OperationalError> for Errors
source§fn from(kind: OperationalError) -> Self
fn from(kind: OperationalError) -> Self
Converts to this type from the input type.
source§impl<T: Ord> Ord for Errors<T>
impl<T: Ord> Ord for Errors<T>
source§impl<T: PartialOrd> PartialOrd for Errors<T>
impl<T: PartialOrd> PartialOrd for Errors<T>
source§impl<T> VariantNames for Errors<T>
impl<T> VariantNames for Errors<T>
impl<T: Eq> Eq for Errors<T>
impl<T> StructuralPartialEq for Errors<T>
Auto Trait Implementations§
impl<T> Freeze for Errors<T>where
T: Freeze,
impl<T> RefUnwindSafe for Errors<T>where
T: RefUnwindSafe,
impl<T> Send for Errors<T>where
T: Send,
impl<T> Sync for Errors<T>where
T: Sync,
impl<T> Unpin for Errors<T>where
T: Unpin,
impl<T> UnwindSafe for Errors<T>where
T: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)