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§impl Debug for WindowCommandQueue
impl Debug for WindowCommandQueue
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