pub struct AnimationState {
pub spinner_tick: u64,
/* private fields */
}Expand description
Animation state kept separate from App (render-layer concern).
Fields§
§spinner_tick: u64Implementations§
Source§impl AnimationState
impl AnimationState
pub fn new() -> Self
Sourcepub fn is_animating(&self, app: &App) -> bool
pub fn is_animating(&self, app: &App) -> bool
Whether any animation is running.
Sourcepub fn has_checking_hosts(&self, app: &App) -> bool
pub fn has_checking_hosts(&self, app: &App) -> bool
Whether any host has PingStatus::Checking (spinner needs ticking).
Sourcepub fn has_reachable_hosts(&self, app: &App) -> bool
pub fn has_reachable_hosts(&self, app: &App) -> bool
Whether any host is currently Reachable. Drives the “breathing”
pulse on online indicators: when at least one host is alive the
main loop runs at 80ms tick rate so online_dot_pulsing can
advance smoothly. Slow/Unreachable/Checking deliberately do NOT
pulse — only confirmed-online gets the subtle live signal.
Sourcepub fn tick_spinner(&mut self)
pub fn tick_spinner(&mut self)
Advance spinner tick. Called from main loop at ~80ms intervals.
Sourcepub fn overlay_anim_progress(&self) -> Option<f32>
pub fn overlay_anim_progress(&self) -> Option<f32>
Current overlay animation progress (0.0 = hidden, 1.0 = fully visible).
Sourcepub fn tick_overlay_anim(&mut self)
pub fn tick_overlay_anim(&mut self)
Tick overlay animation: clean up when complete.
Sourcepub fn detail_anim_progress(&mut self) -> Option<f32>
pub fn detail_anim_progress(&mut self) -> Option<f32>
Current detail panel animation progress (0.0 = closed, 1.0 = open).
Sourcepub fn note_tunnel_panel_target(&mut self, visible: bool)
pub fn note_tunnel_panel_target(&mut self, visible: bool)
Notify the animator that the tunnel detail panel target visibility has been computed for this frame. Starts a slide animation when the target flips, preserving the in-flight progress so a flap mid-animation reverses smoothly.
Sourcepub fn tunnel_panel_anim_progress(&mut self) -> Option<f32>
pub fn tunnel_panel_anim_progress(&mut self) -> Option<f32>
Current tunnel-panel height animation progress
(0.0 = collapsed, 1.0 = full height). Returns None when no
animation is in flight.
Sourcepub fn detect_transitions(&mut self, app: &mut App)
pub fn detect_transitions(&mut self, app: &mut App)
Detect overlay open/close transitions and start animations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl Send for AnimationState
impl Sync for AnimationState
impl Unpin for AnimationState
impl UnsafeUnpin for AnimationState
impl UnwindSafe for AnimationState
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
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>
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>
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