Enum medea_client_api_proto::ClientMsg[][src]

pub enum ClientMsg {
    Pong(u32),
    Command {
        room_id: RoomId,
        command: Command,
    },
}

Message from ‘Client’ to ‘Media Server’.

Variants

Pong(u32)

pong message that Client answers with to Media Server in response to received ServerMsg::Ping.

Command

Request of Client to change the state on Media Server.

Fields of Command

room_id: RoomId

ID of Room that this Command is associated with.

command: Command

Actual Command sent to Media Server.

Trait Implementations

impl Clone for ClientMsg[src]

impl Debug for ClientMsg[src]

impl<'de> Deserialize<'de> for ClientMsg[src]

impl PartialEq<ClientMsg> for ClientMsg[src]

impl Serialize for ClientMsg[src]

impl StructuralPartialEq for ClientMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.