#[non_exhaustive]pub enum NetworkError {
Failed,
Transport,
UnknownProtocol,
Cancelled,
FileDoesNotExist,
}
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§
Trait Implementations§
Source§impl Clone for NetworkError
impl Clone for NetworkError
Source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
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 NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
Source§impl ErrorDomain for NetworkError
impl ErrorDomain for NetworkError
Source§impl<'a> FromValue<'a> for NetworkError
impl<'a> FromValue<'a> for NetworkError
Source§type Checker = GenericValueTypeChecker<NetworkError>
type Checker = GenericValueTypeChecker<NetworkError>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl Hash for NetworkError
impl Hash for NetworkError
Source§impl Ord for NetworkError
impl Ord for NetworkError
Source§fn cmp(&self, other: &NetworkError) -> Ordering
fn cmp(&self, other: &NetworkError) -> 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 NetworkError
impl PartialEq for NetworkError
Source§impl PartialOrd for NetworkError
impl PartialOrd for NetworkError
Source§impl StaticType for NetworkError
impl StaticType for NetworkError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for NetworkError
impl ToValue for NetworkError
Source§impl ValueType for NetworkError
impl ValueType for NetworkError
Source§type Type = NetworkError
type Type = NetworkError
Type to get the
Type
from. Read moreimpl Copy for NetworkError
impl Eq for NetworkError
impl StructuralPartialEq for NetworkError
Auto Trait Implementations§
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnwindSafe for NetworkError
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.