pub enum Progress {
Downloading {
fraction: Option<f32>,
},
Verifying,
Installing,
Done {
path: PathBuf,
},
Failed(InstallError),
}Expand description
One step of an install.
Variants§
Downloading
The archive is downloading; fraction from 0 to 1 once curl knows the size.
Verifying
The download is checked against its SHA-256.
Installing
The font is unpacked, copied into its folder and registered.
Done
The font is installed. path is what to delete to undo it: the folder of its own on
Linux, the font file where the folder is shared with other fonts (macOS, Windows; there
the entry under HKCU\…\Fonts stays and names a missing file, which Windows ignores).
Failed(InstallError)
The install failed; nothing was left half copied.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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> 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