MTLSharedEvent

Trait MTLSharedEvent 

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

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

block must be a valid pointer.

Source

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

Source

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

Source

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

Source

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

Setter for signaledValue.

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

Implementations on Foreign Types§

Source§

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

Implementors§