pub struct TimerModule { /* private fields */ }Trait Implementations§
Source§impl Debug for TimerModule
impl Debug for TimerModule
Source§impl SignalingModule for TimerModule
impl SignalingModule for TimerModule
Source§type Incoming = TimerCommand
type Incoming = TimerCommand
The incoming websocket payload which is received as in
SignalingModule::on_websocket_messageSource§type Outgoing = TimerEvent
type Outgoing = TimerEvent
The outgoing websocket payload that is sent to the clients
Source§type Internal = NoOp
type Internal = NoOp
The incoming command which is received from other
SignalingModulesSource§type Loopback = TimerLoopback
type Loopback = TimerLoopback
Internal result type for asynchronous tasks Read more
Source§type JoinInfo = TimerState
type JoinInfo = TimerState
Namespaced data that can be attached to a participants
JoinSuccess messageSource§type PeerJoinInfo = TimerPeerState
type PeerJoinInfo = TimerPeerState
Namespaced data that can be attached to the
Joined message Read moreSource§type Error = TimerError
type Error = TimerError
The non-fatal error that can be returned from signaling module event handlers Read more
Source§fn init(_init_data: SignalingModuleInitData) -> Option<Self>
fn init(_init_data: SignalingModuleInitData) -> Option<Self>
Creates an instance of the interface to access the module
fn on_participant_joined( &mut self, ctx: &mut ModuleContext<'_, Self>, participant_id: ParticipantId, _connection_id: ConnectionId, _is_first_connection: bool, ) -> Result<ModuleJoinData<Self>, SignalingModuleError<Self::Error>>
fn on_participant_disconnected( &mut self, ctx: &mut ModuleContext<'_, Self>, participant_id: ParticipantId, connection_id: ConnectionId, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_breakout_start( &mut self, _ctx: &mut ModuleContext<'_, Self>, rooms: &[BreakoutRoom], _duration: Option<Duration>, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_breakout_switch( &mut self, ctx: &mut ModuleContext<'_, Self>, participant_id: ParticipantId, _old_room: RoomKind, new_room: RoomKind, ) -> Result<ModuleSwitchData<Self>, SignalingModuleError<Self::Error>>
fn on_breakout_closed( &mut self, _ctx: &mut ModuleContext<'_, Self>, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_websocket_message( &mut self, ctx: &mut ModuleContext<'_, Self>, sender: ParticipantId, _connection_id: ConnectionId, payload: Self::Incoming, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_loopback_event( &mut self, ctx: &mut ModuleContext<'_, Self>, event: Self::Loopback, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_websocket_message_waiting_room( &mut self, ctx: &mut ModuleContext<'_, Self>, sender: ParticipantId, connection_id: ConnectionId, payload: Self::Incoming, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_breakout_closing( &mut self, ctx: &mut ModuleContext<'_, Self>, ) -> Result<(), SignalingModuleError<Self::Error>>
fn on_internal_command( &mut self, ctx: &mut ModuleContext<'_, Self>, command: Self::Internal, ) -> Result<(), SignalingModuleError<Self::Error>>
Source§fn on_closing(&mut self, ctx: &mut ModuleContext<'_, Self>) -> Result<(), Error>
fn on_closing(&mut self, ctx: &mut ModuleContext<'_, Self>) -> Result<(), Error>
Destroy the module and remove all associated resources Read more
Auto Trait Implementations§
impl Freeze for TimerModule
impl !RefUnwindSafe for TimerModule
impl Send for TimerModule
impl Sync for TimerModule
impl Unpin for TimerModule
impl UnsafeUnpin for TimerModule
impl !UnwindSafe for TimerModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more