Skip to main content

MTL4CompilerTask

Trait MTL4CompilerTask 

Source
pub unsafe trait MTL4CompilerTask: NSObjectProtocol {
    // Provided methods
    fn compiler(&self) -> Retained<ProtocolObject<dyn MTL4Compiler>>
       where Self: Sized + Message { ... }
    fn status(&self) -> MTL4CompilerTaskStatus
       where Self: Sized + Message { ... }
    fn waitUntilCompleted(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature MTL4CompilerTask only.
Expand description

A reference to an asynchronous compilation task that you initiate from a compiler instance.

See also Apple’s documentation

Provided Methods§

Source

fn compiler(&self) -> Retained<ProtocolObject<dyn MTL4Compiler>>
where Self: Sized + Message,

Available on crate feature MTL4Compiler only.

Returns the compiler instance that this asynchronous compiler task belongs to.

Source

fn status(&self) -> MTL4CompilerTaskStatus
where Self: Sized + Message,

Returns the compiler task status.

The default is MTL4CompilerStatusNone.

Source

fn waitUntilCompleted(&self)
where Self: Sized + Message,

Waits synchronously for this compile task to complete by blocking the calling thread.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn MTL4CompilerTask

Source§

impl ProtocolType for dyn MTL4CompilerTask

Source§

const NAME: &'static str = "MTL4CompilerTask"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> MTL4CompilerTask for ProtocolObject<T>
where T: ?Sized + MTL4CompilerTask,

Implementors§