#[non_exhaustive]pub enum DownloadError {
Network,
CancelledByUser,
Destination,
}
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 DownloadError
impl Clone for DownloadError
Source§fn clone(&self) -> DownloadError
fn clone(&self) -> DownloadError
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 DownloadError
impl Debug for DownloadError
Source§impl Display for DownloadError
impl Display for DownloadError
Source§impl ErrorDomain for DownloadError
impl ErrorDomain for DownloadError
Source§impl<'a> FromValue<'a> for DownloadError
impl<'a> FromValue<'a> for DownloadError
Source§type Checker = GenericValueTypeChecker<DownloadError>
type Checker = GenericValueTypeChecker<DownloadError>
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 DownloadError
impl Hash for DownloadError
Source§impl Ord for DownloadError
impl Ord for DownloadError
Source§fn cmp(&self, other: &DownloadError) -> Ordering
fn cmp(&self, other: &DownloadError) -> 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 DownloadError
impl PartialEq for DownloadError
Source§impl PartialOrd for DownloadError
impl PartialOrd for DownloadError
Source§impl StaticType for DownloadError
impl StaticType for DownloadError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for DownloadError
impl ToValue for DownloadError
Source§impl ValueType for DownloadError
impl ValueType for DownloadError
Source§type Type = DownloadError
type Type = DownloadError
Type to get the
Type
from. Read moreimpl Copy for DownloadError
impl Eq for DownloadError
impl StructuralPartialEq for DownloadError
Auto Trait Implementations§
impl Freeze for DownloadError
impl RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl UnwindSafe for DownloadError
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
.