pub struct CompilerTask(/* private fields */);Expand description
A task representing an asynchronous compilation operation.
C++ equivalent: MTL4::CompilerTask
CompilerTask represents an in-progress compilation that can be waited on or queried for status.
Implementations§
Source§impl CompilerTask
impl CompilerTask
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CompilerTask from a raw pointer.
Sourcepub fn compiler_raw(&self) -> *mut c_void
pub fn compiler_raw(&self) -> *mut c_void
Get the compiler that created this task.
C++ equivalent: Compiler* compiler() const
Returns the raw pointer to the compiler. Use Compiler::from_raw
to wrap it if needed.
Sourcepub fn status(&self) -> CompilerTaskStatus
pub fn status(&self) -> CompilerTaskStatus
Get the task status.
C++ equivalent: CompilerTaskStatus status() const
Sourcepub fn wait_until_completed(&self)
pub fn wait_until_completed(&self)
Wait until the task is completed.
C++ equivalent: void waitUntilCompleted()
Blocks the current thread until the compilation finishes.
Trait Implementations§
Source§impl Clone for CompilerTask
impl Clone for CompilerTask
Source§impl Debug for CompilerTask
impl Debug for CompilerTask
Source§impl Drop for CompilerTask
impl Drop for CompilerTask
Source§impl Referencing for CompilerTask
impl Referencing for CompilerTask
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 CompilerTask
impl Sync for CompilerTask
Auto Trait Implementations§
impl Freeze for CompilerTask
impl RefUnwindSafe for CompilerTask
impl Unpin for CompilerTask
impl UnwindSafe for CompilerTask
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