pub enum FailKind {
Missing,
NotAFile,
Empty,
Unrecognized,
Unreadable,
NoSpace,
CopyFailed,
LibraryWrite,
UnknownFolder,
Other,
}Expand description
Why a file could not be imported, for the app’s list of failed imports.
Variants§
Missing
The file is gone.
NotAFile
A folder or package, not a regular file.
Empty
Empty (only .txt files may be).
Unrecognized
Its format can’t be told.
Unreadable
It can’t be read (permissions, a disk error).
NoSpace
The disk is full.
CopyFailed
Copying it into the staging folder failed.
LibraryWrite
Writing it into the library failed.
UnknownFolder
A folder it should go in no longer exists.
Other
Anything else.
Implementations§
Trait Implementations§
impl Copy for FailKind
impl Eq for FailKind
impl StructuralPartialEq for FailKind
Auto Trait Implementations§
impl Freeze for FailKind
impl RefUnwindSafe for FailKind
impl Send for FailKind
impl Sync for FailKind
impl Unpin for FailKind
impl UnsafeUnpin for FailKind
impl UnwindSafe for FailKind
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more