pub enum ExternalError {
Error(String),
Unknown,
}Variants§
Implementations§
Source§impl ExternalError
impl ExternalError
Sourcepub const fn is_error(&self) -> bool
pub const fn is_error(&self) -> bool
Returns true if the enum is ExternalError::Error 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<'de> Deserialize<'de> for ExternalError
impl<'de> Deserialize<'de> for ExternalError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExternalError
impl Display for ExternalError
Source§impl Error for ExternalError
impl Error for ExternalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&str> for ExternalError
impl From<&str> for ExternalError
Source§impl From<ExternalError> for ErrorKind
impl From<ExternalError> for ErrorKind
Source§fn from(err: ExternalError) -> Self
fn from(err: ExternalError) -> Self
Converts to this type from the input type.
Source§impl From<String> for ExternalError
impl From<String> for ExternalError
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§impl PartialOrd for ExternalError
impl PartialOrd for ExternalError
Source§impl Serialize for ExternalError
impl Serialize for ExternalError
Source§impl VariantNames for ExternalError
impl VariantNames for ExternalError
impl Eq for ExternalError
impl ErrKind 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