pub enum ServerMsg {
Ping(u32),
Event {
room_id: RoomId,
event: Event,
},
RpcSettings(RpcSettings),
}
Expand description
Message sent by Media Server to Web Client.
Variants§
Ping(u32)
ping
message that Media Server is expected to send to Web Client
periodically for probing its aliveness.
Event
Fields
Media Server notifies Web Client about happened facts and it reacts on them to reach the proper state.
RpcSettings(RpcSettings)
Media Server notifies Web Client about necessity to update its RPC settings.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ServerMsg
impl<'de> Deserialize<'de> for ServerMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ServerMsg> for ServerMsg
impl PartialEq<ServerMsg> for ServerMsg
impl Eq for ServerMsg
impl StructuralEq for ServerMsg
impl StructuralPartialEq for ServerMsg
Auto Trait Implementations§
impl RefUnwindSafe for ServerMsg
impl Send for ServerMsg
impl Sync for ServerMsg
impl Unpin for ServerMsg
impl UnwindSafe for ServerMsg
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