pub struct Animator { /* private fields */ }Expand description
Eases the displayed fill toward git’s percentage and plays stages in order, so stages that git finishes in milliseconds stay visible.
Implementations§
Source§impl Animator
impl Animator
pub fn new(now: Instant) -> Self
Sourcepub fn push(&mut self, p: Progress, now: Instant)
pub fn push(&mut self, p: Progress, now: Instant)
New progress from git. Updates of the latest stage replace it in place.
Sourcepub fn tick(&mut self, now: Instant)
pub fn tick(&mut self, now: Instant)
Advances the fill and moves to the next stage once the current one caught up and was held.
Auto Trait Implementations§
impl Forget for Animator
impl Freeze for Animator
impl RefUnwindSafe for Animator
impl Send for Animator
impl Sync for Animator
impl Unpin for Animator
impl UnsafeUnpin for Animator
impl UnwindSafe for Animator
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> 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