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§
Sourceunsafe fn publisher_didReceiveEvent(
&self,
publisher: &ProtocolObject<dyn AVMetricEventStreamPublisher>,
event: &AVMetricEvent,
)
unsafe fn publisher_didReceiveEvent( &self, publisher: &ProtocolObject<dyn AVMetricEventStreamPublisher>, event: &AVMetricEvent, )
Delegate callback to receive metric events.
Parameter event
: The metric event.
Parameter publisher
: The publisher which generated the current event.