pub struct InputQueue { /* private fields */ }Expand description
FIFO input queue.
Implementations§
Source§impl InputQueue
impl InputQueue
Sourcepub fn dequeue(&mut self) -> Option<QueuedInput>
pub fn dequeue(&mut self) -> Option<QueuedInput>
Dequeue the next input (FIFO).
Sourcepub fn peek(&self) -> Option<&QueuedInput>
pub fn peek(&self) -> Option<&QueuedInput>
Peek at the next input without removing it.
Sourcepub fn remove(&mut self, input_id: &InputId) -> Option<QueuedInput>
pub fn remove(&mut self, input_id: &InputId) -> Option<QueuedInput>
Remove a specific input by ID (e.g., for supersession).
Sourcepub fn drain(&mut self) -> Vec<QueuedInput>
pub fn drain(&mut self) -> Vec<QueuedInput>
Drain all entries from the queue.
Trait Implementations§
Source§impl Clone for InputQueue
impl Clone for InputQueue
Source§fn clone(&self) -> InputQueue
fn clone(&self) -> InputQueue
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 InputQueue
impl Debug for InputQueue
Source§impl Default for InputQueue
impl Default for InputQueue
Source§fn default() -> InputQueue
fn default() -> InputQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputQueue
impl RefUnwindSafe for InputQueue
impl Send for InputQueue
impl Sync for InputQueue
impl Unpin for InputQueue
impl UnsafeUnpin for InputQueue
impl UnwindSafe for InputQueue
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