pub struct WindowCommandQueue { /* private fields */ }Expand description
Thread-local command queue allowing UI handlers to issue window mutations safely.
Implementations§
Source§impl WindowCommandQueue
Queueing and draining methods for WindowCommandQueue.
impl WindowCommandQueue
Queueing and draining methods for WindowCommandQueue.
Sourcepub fn push(&mut self, command: WindowCommand)
pub fn push(&mut self, command: WindowCommand)
Pushes a window command onto the queue.
§Arguments
&Self- Mutable command queue.WindowCommand- Command to enqueue.
Sourcepub fn drain(&mut self) -> Vec<WindowCommand>
pub fn drain(&mut self) -> Vec<WindowCommand>
Trait Implementations§
Source§impl Clone for WindowCommandQueue
impl Clone for WindowCommandQueue
Source§fn clone(&self) -> WindowCommandQueue
fn clone(&self) -> WindowCommandQueue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowCommandQueue
impl Debug for WindowCommandQueue
Source§impl Default for WindowCommandQueue
impl Default for WindowCommandQueue
Source§fn default() -> WindowCommandQueue
fn default() -> WindowCommandQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for WindowCommandQueue
impl Freeze for WindowCommandQueue
impl Move for WindowCommandQueue
impl RefUnwindSafe for WindowCommandQueue
impl Send for WindowCommandQueuewhere
RawVecInner: Send,
impl Sync for WindowCommandQueuewhere
RawVecInner: Sync,
impl Unpin for WindowCommandQueue
impl UnsafeUnpin for WindowCommandQueue
impl UnwindSafe for WindowCommandQueuewhere
RawVecInner: UnwindSafe,
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