Trait objc2_metal::MTLSharedEvent

source ·
pub unsafe trait MTLSharedEvent: MTLEvent + IsRetainable {
    // Provided methods
    unsafe fn notifyListener_atValue_block(
        &self,
        listener: &MTLSharedEventListener,
        value: u64,
        block: MTLSharedEventNotificationBlock
    )
       where Self: Sized + Message { ... }
    unsafe fn newSharedEventHandle(&self) -> Retained<MTLSharedEventHandle>
       where Self: Sized + Message { ... }
    unsafe fn waitUntilSignaledValue_timeoutMS(
        &self,
        value: u64,
        milliseconds: u64
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn signaledValue(&self) -> u64
       where Self: Sized + Message { ... }
    unsafe fn setSignaledValue(&self, signaled_value: u64)
       where Self: Sized + Message { ... }
}
Available on crate feature MTLEvent only.

Provided Methods§

source

unsafe fn notifyListener_atValue_block( &self, listener: &MTLSharedEventListener, value: u64, block: MTLSharedEventNotificationBlock )
where Self: Sized + Message,

Available on crate feature block2 only.
source

unsafe fn newSharedEventHandle(&self) -> Retained<MTLSharedEventHandle>
where Self: Sized + Message,

source

unsafe fn waitUntilSignaledValue_timeoutMS( &self, value: u64, milliseconds: u64 ) -> bool
where Self: Sized + Message,

source

unsafe fn signaledValue(&self) -> u64
where Self: Sized + Message,

source

unsafe fn setSignaledValue(&self, signaled_value: u64)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MTLSharedEvent

source§

const NAME: &'static str = "MTLSharedEvent"

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 MTLSharedEvent

Implementations on Foreign Types§

source§

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

Implementors§