pub struct ToastAsyncQueueHandle { /* private fields */ }Expand description
Thread-safe handle for scheduling toast upserts/dismissals from background work.
Messages are applied on the UI thread during the window overlays render pass.
Implementations§
Source§impl ToastAsyncQueueHandle
impl ToastAsyncQueueHandle
pub fn push(&self, msg: ToastAsyncMsg)
pub fn upsert(&self, window: AppWindowId, request: ToastRequest)
pub fn dismiss(&self, window: AppWindowId, id: ToastId)
Trait Implementations§
Source§impl Clone for ToastAsyncQueueHandle
impl Clone for ToastAsyncQueueHandle
Source§fn clone(&self) -> ToastAsyncQueueHandle
fn clone(&self) -> ToastAsyncQueueHandle
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 moreAuto Trait Implementations§
impl Freeze for ToastAsyncQueueHandle
impl RefUnwindSafe for ToastAsyncQueueHandle
impl Send for ToastAsyncQueueHandle
impl Sync for ToastAsyncQueueHandle
impl Unpin for ToastAsyncQueueHandle
impl UnsafeUnpin for ToastAsyncQueueHandle
impl UnwindSafe for ToastAsyncQueueHandle
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