[][src]Enum medea_client_api_proto::Command

pub enum Command {
    MakeSdpOffer {
        peer_id: u64,
        sdp_offer: String,
        mids: HashMap<u64, String>,
    },
    MakeSdpAnswer {
        peer_id: u64,
        sdp_answer: String,
    },
    SetIceCandidate {
        peer_id: u64,
        candidate: IceCandidate,
    },
}

WebSocket message from Web Client to Media Server.

Variants

MakeSdpOffer

Web Client sends SDP Offer.

Fields of MakeSdpOffer

peer_id: u64sdp_offer: Stringmids: HashMap<u64, String>

Associations between Track and transceiver's media description.

mid is basically an ID of m=<media> section in SDP.

MakeSdpAnswer

Web Client sends SDP Answer.

Fields of MakeSdpAnswer

peer_id: u64sdp_answer: String
SetIceCandidate

Web Client sends Ice Candidate.

Fields of SetIceCandidate

peer_id: u64candidate: IceCandidate

Trait Implementations

impl Serialize for Command[src]

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

Auto Trait Implementations

impl Send for Command

impl Unpin for Command

impl Sync for Command

impl UnwindSafe for Command

impl RefUnwindSafe for Command

Blanket Implementations

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

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

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.

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

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

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

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