Enum scsys_core::errors::OperationalError
source · #[non_exhaustive]pub enum OperationalError {
Arithmetic,
System,
}
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.
Implementations§
source§impl OperationalError
impl OperationalError
sourcepub const fn is_arithmetic(&self) -> bool
pub const fn is_arithmetic(&self) -> bool
Returns true if the enum is OperationalError::Arithmetic otherwise false
source§impl OperationalError
impl OperationalError
pub fn arithmetic() -> Self
pub fn system() -> Self
Trait Implementations§
source§impl AsRef<str> for OperationalError
impl AsRef<str> for OperationalError
source§impl Clone for OperationalError
impl Clone for OperationalError
source§fn clone(&self) -> OperationalError
fn clone(&self) -> OperationalError
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 OperationalError
impl Debug for OperationalError
source§impl Default for OperationalError
impl Default for OperationalError
source§impl Display for OperationalError
impl Display for OperationalError
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 Hash for OperationalError
impl Hash for OperationalError
source§impl IntoEnumIterator for OperationalError
impl IntoEnumIterator for OperationalError
type Iterator = OperationalErrorIter
fn iter() -> OperationalErrorIter ⓘ
source§impl Ord for OperationalError
impl Ord for OperationalError
source§fn cmp(&self, other: &OperationalError) -> Ordering
fn cmp(&self, other: &OperationalError) -> 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 for OperationalError
impl PartialEq for OperationalError
source§fn eq(&self, other: &OperationalError) -> bool
fn eq(&self, other: &OperationalError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OperationalError
impl PartialOrd for OperationalError
source§fn partial_cmp(&self, other: &OperationalError) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationalError) -> 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 moresource§impl VariantNames for OperationalError
impl VariantNames for OperationalError
impl Eq for OperationalError
impl StructuralPartialEq for OperationalError
Auto Trait Implementations§
impl Freeze for OperationalError
impl RefUnwindSafe for OperationalError
impl Send for OperationalError
impl Sync for OperationalError
impl Unpin for OperationalError
impl UnwindSafe for OperationalError
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