pub enum FinishReason {
Completed,
Stopped(StopMode),
Error(String),
}Expand description
Why an animation ended. Delivered through the observer on_finish hook
and returned from AnimationHandle::wait.
Variants§
Completed
All active icons reached their targets.
Stopped(StopMode)
The animation was stopped by an explicit
AnimationHandle::stop call.
Error(String)
The backend reported a fatal error mid-animation.
The string carries a human-readable description of the underlying
DesktopError. The enum itself is not
retained, so FinishReason stays cheap to clone and safe to
send across language boundaries.
Trait Implementations§
Source§impl Clone for FinishReason
impl Clone for FinishReason
Source§impl Debug for FinishReason
impl Debug for FinishReason
Source§impl PartialEq for FinishReason
impl PartialEq for FinishReason
impl StructuralPartialEq for FinishReason
Auto Trait Implementations§
impl Freeze for FinishReason
impl RefUnwindSafe for FinishReason
impl Send for FinishReason
impl Sync for FinishReason
impl Unpin for FinishReason
impl UnsafeUnpin for FinishReason
impl UnwindSafe for FinishReason
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