pub enum ClientMsg {
Pong(u32),
Command {
room_id: RoomId,
command: Command,
},
}
Expand description
Message by Web Client to Media Server.
Variants§
Pong(u32)
pong
message that Web Client answers with to Media Server in response
to received ServerMsg::Ping
.
Command
Request of Web Client to change its state on Media Server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClientMsg
impl<'de> Deserialize<'de> for ClientMsg
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
impl StructuralPartialEq for ClientMsg
Auto Trait Implementations§
impl Freeze for ClientMsg
impl RefUnwindSafe for ClientMsg
impl Send for ClientMsg
impl Sync for ClientMsg
impl Unpin for ClientMsg
impl UnwindSafe for ClientMsg
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