pub struct IOCommandQueue(/* private fields */);Expand description
Command queue for IO operations.
C++ equivalent: MTL::IOCommandQueue
Implementations§
Source§impl IOCommandQueue
impl IOCommandQueue
Sourcepub fn command_buffer(&self) -> Option<IOCommandBuffer>
pub fn command_buffer(&self) -> Option<IOCommandBuffer>
Create a command buffer.
C++ equivalent: IOCommandBuffer* commandBuffer()
Sourcepub fn command_buffer_with_unretained_references(
&self,
) -> Option<IOCommandBuffer>
pub fn command_buffer_with_unretained_references( &self, ) -> Option<IOCommandBuffer>
Create a command buffer with unretained references.
C++ equivalent: IOCommandBuffer* commandBufferWithUnretainedReferences()
Sourcepub fn enqueue_barrier(&self)
pub fn enqueue_barrier(&self)
Enqueue a barrier.
C++ equivalent: void enqueueBarrier()
Trait Implementations§
Source§impl Clone for IOCommandQueue
impl Clone for IOCommandQueue
Source§impl Drop for IOCommandQueue
impl Drop for IOCommandQueue
Source§impl Referencing for IOCommandQueue
impl Referencing for IOCommandQueue
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for IOCommandQueue
impl Sync for IOCommandQueue
Auto Trait Implementations§
impl Freeze for IOCommandQueue
impl RefUnwindSafe for IOCommandQueue
impl Unpin for IOCommandQueue
impl UnwindSafe for IOCommandQueue
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