pub enum RpcEvent {
JoinedRoom {
room_id: RoomId,
member_id: MemberId,
},
LeftRoom {
room_id: RoomId,
close_reason: CloseReason,
},
Event {
room_id: RoomId,
event: Event,
},
}Expand description
Events which can be thrown by WebSocketRpcClient.
Variants§
JoinedRoom
Notification of the subscribers that WebSocketRpcClient is joined
Room on Media Server.
LeftRoom
Notification of the subscribers that WebSocketRpcClient left
Room on Media Server.
Fields
§
close_reason: CloseReasonReason of why the Room has been left.
Event
WebSocketRpcClient received Event from Media Server.
Implementations§
Source§impl RpcEvent
impl RpcEvent
Sourcepub fn dispatch_with<T: RpcEventHandler>(
self,
handler: &T,
) -> <T as RpcEventHandler>::Output
pub fn dispatch_with<T: RpcEventHandler>( self, handler: &T, ) -> <T as RpcEventHandler>::Output
Dispatches RpcEvent with given RpcEventHandler.
Trait Implementations§
impl Eq for RpcEvent
impl StructuralPartialEq for RpcEvent
Auto Trait Implementations§
impl Freeze for RpcEvent
impl RefUnwindSafe for RpcEvent
impl Send for RpcEvent
impl Sync for RpcEvent
impl Unpin for RpcEvent
impl UnwindSafe for RpcEvent
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