MTLEvent

Trait MTLEvent 

Source
pub unsafe trait MTLEvent:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided methods
    fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
       where Self: Sized + Message { ... }
    fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn setLabel(&self, label: Option<&NSString>)
       where Self: Sized + Message { ... }
}
Available on crate feature MTLEvent only.
Expand description

Provided Methods§

Source

fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.

The device this event can be used with. Will be nil when the event is shared across devices (i.e. MTLSharedEvent).

Source

fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

A string to help identify this object.

Source

fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message,

Setter for label.

This is copied when set.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLEvent

Source§

const NAME: &'static str = "MTLEvent"

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
Source§

impl<T> ImplementedBy<T> for dyn MTLEvent
where T: ?Sized + Message + MTLEvent,

Implementations on Foreign Types§

Source§

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

Implementors§