pub struct ToastStore { /* private fields */ }Implementations§
Source§impl ToastStore
impl ToastStore
pub fn set_window_close_duration( &mut self, window: AppWindowId, duration: Duration, ) -> bool
pub fn set_window_default_duration( &mut self, window: AppWindowId, toaster_id: Option<Arc<str>>, duration: Option<Duration>, ) -> bool
pub fn set_toaster_swipe_directions( &mut self, window: AppWindowId, toaster: GlobalElementId, directions: Option<ToastSwipeDirections>, ) -> bool
pub fn set_window_max_toasts( &mut self, window: AppWindowId, max_toasts: Option<usize>, ) -> bool
pub fn window_counts(&self, window: AppWindowId) -> ToastWindowCounts
pub fn set_window_swipe_config( &mut self, window: AppWindowId, direction: ToastSwipeDirection, threshold: Px, ) -> bool
pub fn set_window_swipe_config_with_options( &mut self, window: AppWindowId, config: ToastSwipeConfig, ) -> bool
pub fn set_toaster_hovered( &mut self, window: AppWindowId, toaster: GlobalElementId, hovered: bool, ) -> bool
pub fn set_toaster_interacting( &mut self, window: AppWindowId, toaster: GlobalElementId, interacting: bool, ) -> bool
pub fn set_toaster_hotkey_expanded( &mut self, window: AppWindowId, toaster: GlobalElementId, expanded: bool, ) -> bool
pub fn set_toast_measured_height( &mut self, window: AppWindowId, id: ToastId, height: Px, ) -> bool
Trait Implementations§
Source§impl Debug for ToastStore
impl Debug for ToastStore
Source§impl Default for ToastStore
impl Default for ToastStore
Source§fn default() -> ToastStore
fn default() -> ToastStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToastStore
impl RefUnwindSafe for ToastStore
impl Send for ToastStore
impl Sync for ToastStore
impl Unpin for ToastStore
impl UnsafeUnpin for ToastStore
impl UnwindSafe for ToastStore
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