#[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
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 Display for OperationalError
impl Display for OperationalError
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 Hash for OperationalError
impl Hash for OperationalError
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§impl PartialOrd for OperationalError
impl PartialOrd for OperationalError
Source§impl VariantNames for OperationalError
impl VariantNames for OperationalError
impl Copy 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