Enum medea_client_api_proto::ServerMsg[][src]

pub enum ServerMsg {
    Ping(u32),
    Event {
        room_id: RoomId,
        event: Event,
    },
    RpcSettings(RpcSettings),
}

Message sent by Media Server to Client.

Variants

Ping(u32)

ping message that Media Server is expected to send to Client periodically for probing its aliveness.

Event

Media Server notifies Client about happened facts and it reacts on them to reach the proper state.

Fields of Event

room_id: RoomId

ID of Room that this Event is associated with.

event: Event

Actual Event sent to Client.

RpcSettings(RpcSettings)

Media Server notifies Client about necessity to update its RPC settings.

Trait Implementations

impl Clone for ServerMsg[src]

impl Debug for ServerMsg[src]

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

impl Eq for ServerMsg[src]

impl PartialEq<ServerMsg> for ServerMsg[src]

impl Serialize for ServerMsg[src]

impl StructuralEq for ServerMsg[src]

impl StructuralPartialEq for ServerMsg[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.