pub enum NodeAnimation {
Pulse,
Ripple,
CountdownArc,
ScaleIn,
Crosshair,
}Expand description
A built-in effect that plays once and ends.
Anchored to the Instant an event happened, these are the animations
reached through NodeHandle: map.node(id)?.ripple(t).
The widget drops the notification and stops repainting once the effect
finishes. See crate::map::animation for what each looks like and how
long it runs.
Ignored when a NodeTemplate is installed — the template’s
notification_ui takes over. The effects stay reachable there through
Animation.
Variants§
Pulse
Expanding, fading disc. Reads as “one thing happened here”.
Ripple
Three staggered expanding rings. Reads as “activity is ongoing”.
CountdownArc
A ring that empties clockwise. Reads as “how old is this information”.
ScaleIn
A disc that overshoots its size and settles. For nodes that just appeared.
Crosshair
Four ticks converging on the node. Reads as “target acquired”.
Trait Implementations§
Source§impl Clone for NodeAnimation
impl Clone for NodeAnimation
Source§fn clone(&self) -> NodeAnimation
fn clone(&self) -> NodeAnimation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NodeAnimation
Source§impl Debug for NodeAnimation
impl Debug for NodeAnimation
Source§impl Default for NodeAnimation
impl Default for NodeAnimation
Source§fn default() -> NodeAnimation
fn default() -> NodeAnimation
impl Eq for NodeAnimation
Source§impl PartialEq for NodeAnimation
impl PartialEq for NodeAnimation
impl StructuralPartialEq for NodeAnimation
Auto Trait Implementations§
impl Freeze for NodeAnimation
impl RefUnwindSafe for NodeAnimation
impl Send for NodeAnimation
impl Sync for NodeAnimation
impl Unpin for NodeAnimation
impl UnsafeUnpin for NodeAnimation
impl UnwindSafe for NodeAnimation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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> ⓘ
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