Enum scsys_core::errors::ExternalError
source · pub enum ExternalError {
Custom(String),
Unknown,
}
Variants§
Implementations§
source§impl ExternalError
impl ExternalError
sourcepub const fn is_custom(&self) -> bool
pub const fn is_custom(&self) -> bool
Returns true if the enum is ExternalError::Custom otherwise false
sourcepub const fn is_unknown(&self) -> bool
pub const fn is_unknown(&self) -> bool
Returns true if the enum is ExternalError::Unknown otherwise false
Trait Implementations§
source§impl AsRef<str> for ExternalError
impl AsRef<str> for ExternalError
source§impl Clone for ExternalError
impl Clone for ExternalError
source§fn clone(&self) -> ExternalError
fn clone(&self) -> ExternalError
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 ExternalError
impl Debug for ExternalError
source§impl Display for ExternalError
impl Display for ExternalError
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 Hash for ExternalError
impl Hash for ExternalError
source§impl IntoEnumIterator for ExternalError
impl IntoEnumIterator for ExternalError
type Iterator = ExternalErrorIter
fn iter() -> ExternalErrorIter ⓘ
source§impl Ord for ExternalError
impl Ord for ExternalError
source§fn cmp(&self, other: &ExternalError) -> Ordering
fn cmp(&self, other: &ExternalError) -> 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 ExternalError
impl PartialEq for ExternalError
source§fn eq(&self, other: &ExternalError) -> bool
fn eq(&self, other: &ExternalError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExternalError
impl PartialOrd for ExternalError
source§fn partial_cmp(&self, other: &ExternalError) -> Option<Ordering>
fn partial_cmp(&self, other: &ExternalError) -> 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 ExternalError
impl VariantNames for ExternalError
impl Eq for ExternalError
impl StructuralPartialEq for ExternalError
Auto Trait Implementations§
impl Freeze for ExternalError
impl RefUnwindSafe for ExternalError
impl Send for ExternalError
impl Sync for ExternalError
impl Unpin for ExternalError
impl UnwindSafe for ExternalError
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