Struct opentok::session::SessionCallbacksBuilder [−][src]
pub struct SessionCallbacksBuilder { /* fields omitted */ }
Implementations
pub fn on_reconnection_started<F: Fn(&Session) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_connection_created<F: Fn(&Session, Connection) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_connection_dropped<F: Fn(&Session, Connection) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_stream_received<F: Fn(&Session, Stream) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_stream_dropped<F: Fn(&Session, Stream) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_stream_has_audio_changed<F: Fn(&Session, Stream, bool) + 'static + Send + Sync>(
self,
callback: F
) -> Self
pub fn on_stream_has_video_changed<F: Fn(&Session, Stream, bool) + 'static + Send + Sync>(
self,
callback: F
) -> Self
pub fn on_stream_video_dimensions_changed<F: Fn(&Session, Stream, i32, i32) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_stream_video_type_changed<F: Fn(&Session, Stream, StreamVideoType) + 'static + Send + Sync>(
self,
callback: F
) -> Self
pub fn on_signal_received<F: Fn(&Session, &str, &str, Connection) + Send + Sync + 'static>(
self,
callback: F
) -> Self
pub fn on_archive_started<F: Fn(&Session, &str, &str) + 'static + Send + Sync>(
self,
callback: F
) -> Self
pub fn on_archive_stopped<F: Fn(&Session, &str) + Send + Sync + 'static>(
self,
callback: F
) -> Self
Trait Implementations
Returns the “default value” for a type. Read more