Trait objc2_metal::MTLEvent

source ·
pub unsafe trait MTLEvent: NSObjectProtocol + IsRetainable {
    // 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.

Provided Methods§

source

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

Available on crate feature MTLDevice only.
source

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

source

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

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