Struct opentok::subscriber::SubscriberCallbacksBuilder [−][src]
pub struct SubscriberCallbacksBuilder { /* fields omitted */ }
Implementations
pub fn on_connected<F: Fn(&Subscriber, Stream) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_render_frame<F: Fn(&Subscriber, VideoFrame) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_video_disabled<F: Fn(&Subscriber, VideoReason) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_video_enabled<F: Fn(&Subscriber, VideoReason) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_audio_disabled<F: Fn(&Subscriber) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_audio_enabled<F: Fn(&Subscriber) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_video_data_received<F: Fn(&Subscriber) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_video_disable_warning<F: Fn(&Subscriber) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_video_disable_warning_lifted<F: Fn(&Subscriber) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_audio_level_updated<F: Fn(&Subscriber, f32) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_error<F: Fn(&Subscriber, &str, SubscriberError) + 'static + Send + Sync>(
self,
callback: F
) -> Self
Trait Implementations
Returns the “default value” for a type. Read more