pub struct CommandQueue { /* private fields */ }Implementations§
Source§impl CommandQueue
impl CommandQueue
pub fn new(handle: QueueHandle, capacity: usize) -> Self
pub fn handle(&self) -> QueueHandle
pub fn submit(&mut self, cmd: Command, pri: QueuePriority) -> TptrResult<u64>
pub fn dequeue(&mut self) -> Option<(u64, Command)>
pub fn peek(&self) -> Option<&Command>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn create_event(&mut self) -> EventHandle
pub fn signal_event(&mut self, event: EventHandle)
pub fn is_event_signaled(&self, event: EventHandle) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CommandQueue
impl RefUnwindSafe for CommandQueue
impl Send for CommandQueue
impl Sync for CommandQueue
impl Unpin for CommandQueue
impl UnsafeUnpin for CommandQueue
impl UnwindSafe for CommandQueue
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