Trait AVMetricEventStreamSubscriber

Source
pub unsafe trait AVMetricEventStreamSubscriber {
    // Provided method
    unsafe fn publisher_didReceiveEvent(
        &self,
        publisher: &ProtocolObject<dyn AVMetricEventStreamPublisher>,
        event: &AVMetricEvent,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVMetrics only.
Expand description

This protocol needs to be implemented by the subscriber delegate to receive subscribed metric events.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn publisher_didReceiveEvent( &self, publisher: &ProtocolObject<dyn AVMetricEventStreamPublisher>, event: &AVMetricEvent, )
where Self: Sized + Message,

Delegate callback to receive metric events.

Parameter event: The metric event.

Parameter publisher: The publisher which generated the current event.

Trait Implementations§

Source§

impl ProtocolType for dyn AVMetricEventStreamSubscriber

Source§

const NAME: &'static str = "AVMetricEventStreamSubscriber"

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 AVMetricEventStreamSubscriber

Implementations on Foreign Types§

Source§

impl<T> AVMetricEventStreamSubscriber for ProtocolObject<T>

Implementors§