pub struct FrictionPauseOverlay<'a> {
pub pause: &'a FrictionPause,
pub theme: Theme,
pub now: Instant,
}Expand description
Friction-pause overlay — renders a visible countdown (L1) or a
countdown-plus-typed-confirm field (L2+). The overlay is read
from FrictionPause; completion is the event loop’s job,
not the widget’s.
Why the widget takes an Instant by argument instead of
calling Instant::now() itself: tests. We want deterministic
rendering at fractional countdown states.
Fields§
§pause: &'a FrictionPause§theme: Theme§now: InstantTrait Implementations§
Source§impl<'a> Debug for FrictionPauseOverlay<'a>
impl<'a> Debug for FrictionPauseOverlay<'a>
Auto Trait Implementations§
impl<'a> Freeze for FrictionPauseOverlay<'a>
impl<'a> RefUnwindSafe for FrictionPauseOverlay<'a>
impl<'a> Send for FrictionPauseOverlay<'a>
impl<'a> Sync for FrictionPauseOverlay<'a>
impl<'a> Unpin for FrictionPauseOverlay<'a>
impl<'a> UnsafeUnpin for FrictionPauseOverlay<'a>
impl<'a> UnwindSafe for FrictionPauseOverlay<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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