pub enum FriendlyDownloadProblem {
NetworkUnavailable,
ServerBusy,
NotEnoughSpace,
CannotWriteFiles,
CannotCheckFiles,
ValidationFailed,
Unexpected,
}Expand description
Friendly download problem — safe to show to users (RFC-043 §16.4).
Variants§
Implementations§
Source§impl FriendlyDownloadProblem
impl FriendlyDownloadProblem
Sourcepub fn user_message(&self) -> &'static str
pub fn user_message(&self) -> &'static str
User-facing copy (RFC-043 §20, avoiding technical terms).
Trait Implementations§
Source§impl Clone for FriendlyDownloadProblem
impl Clone for FriendlyDownloadProblem
Source§fn clone(&self) -> FriendlyDownloadProblem
fn clone(&self) -> FriendlyDownloadProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FriendlyDownloadProblem
impl RefUnwindSafe for FriendlyDownloadProblem
impl Send for FriendlyDownloadProblem
impl Sync for FriendlyDownloadProblem
impl Unpin for FriendlyDownloadProblem
impl UnsafeUnpin for FriendlyDownloadProblem
impl UnwindSafe for FriendlyDownloadProblem
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