pub struct ToastAnimationConfig {
pub entrance: ToastEntranceAnimation,
pub exit: ToastExitAnimation,
pub entrance_duration: Duration,
pub exit_duration: Duration,
pub entrance_easing: ToastEasing,
pub exit_easing: ToastEasing,
pub respect_reduced_motion: bool,
}Expand description
Animation configuration for a toast.
Fields§
§entrance: ToastEntranceAnimationEntrance animation type.
exit: ToastExitAnimationExit animation type.
entrance_duration: DurationDuration of entrance animation.
exit_duration: DurationDuration of exit animation.
entrance_easing: ToastEasingEasing function for entrance.
exit_easing: ToastEasingEasing function for exit.
respect_reduced_motion: boolWhether to respect reduced-motion preference.
Implementations§
Source§impl ToastAnimationConfig
impl ToastAnimationConfig
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Check if animations are effectively disabled.
Trait Implementations§
Source§impl Clone for ToastAnimationConfig
impl Clone for ToastAnimationConfig
Source§fn clone(&self) -> ToastAnimationConfig
fn clone(&self) -> ToastAnimationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToastAnimationConfig
impl Debug for ToastAnimationConfig
Auto Trait Implementations§
impl Freeze for ToastAnimationConfig
impl RefUnwindSafe for ToastAnimationConfig
impl Send for ToastAnimationConfig
impl Sync for ToastAnimationConfig
impl Unpin for ToastAnimationConfig
impl UnwindSafe for ToastAnimationConfig
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