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
Fields
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
source§impl PartialEq<ClientMsg> for ClientMsg
impl PartialEq<ClientMsg> for ClientMsg
impl StructuralPartialEq for ClientMsg
Auto Trait Implementations§
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