pub enum InstallError {
NoFolder,
MissingTool(String),
Download(String),
Verify(String),
Checksum {
expected: String,
actual: String,
},
Extract(String),
Copy(String),
Register(String),
Cancelled,
}Expand description
Why an install failed.
Variants§
NoFolder
The system names no font folder for the user, see target_dir.
MissingTool(String)
A program the install needs is missing; its name.
Download(String)
curl could not download the archive; its message.
Verify(String)
The checksum program failed; its message.
Checksum
The download does not have the SHA-256 written in the source, so it was deleted.
Fields
Extract(String)
tar could not unpack the font; its message.
Copy(String)
The font could not be copied into its folder; the system’s message.
Register(String)
The font is in its folder, but the system could not be told; the program’s message.
Cancelled
The install was cancelled.
Implementations§
Trait Implementations§
Source§impl Clone for InstallError
impl Clone for InstallError
Source§fn clone(&self) -> InstallError
fn clone(&self) -> InstallError
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 moreSource§impl Debug for InstallError
impl Debug for InstallError
impl Eq for InstallError
Source§impl PartialEq for InstallError
impl PartialEq for InstallError
impl StructuralPartialEq for InstallError
Auto Trait Implementations§
impl Freeze for InstallError
impl RefUnwindSafe for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnsafeUnpin for InstallError
impl UnwindSafe for InstallError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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