Enum medea_client_api_proto::Command[][src]

pub enum Command {
    JoinRoom {
        member_id: MemberId,
        credential: Credential,
    },
    LeaveRoom {
        member_id: MemberId,
    },
    MakeSdpOffer {
        peer_id: PeerId,
        sdp_offer: String,
        mids: HashMap<TrackId, String>,
        transceivers_statuses: HashMap<TrackId, bool>,
    },
    MakeSdpAnswer {
        peer_id: PeerId,
        sdp_answer: String,
        transceivers_statuses: HashMap<TrackId, bool>,
    },
    SetIceCandidate {
        peer_id: PeerId,
        candidate: IceCandidate,
    },
    AddPeerConnectionMetrics {
        peer_id: PeerId,
        metrics: PeerMetrics,
    },
    UpdateTracks {
        peer_id: PeerId,
        tracks_patches: Vec<TrackPatchCommand>,
    },
    SynchronizeMe {
        state: Room,
    },
}

WebSocket message from Web Client to Media Server.

Variants

JoinRoom

Request of Client to join Room.

Fields of JoinRoom

member_id: MemberId

ID of Member with which Credential Client want to join.

credential: Credential

Credential of Client’s Member.

LeaveRoom

Request of Client to leave Room.

Fields of LeaveRoom

member_id: MemberId

ID of leaving Member.

MakeSdpOffer

Web Client sends SDP Offer.

Fields of MakeSdpOffer

peer_id: PeerId

ID of the Peer for which Web Client sends SDP Offer.

sdp_offer: String

SDP Offer of the Peer.

mids: HashMap<TrackId, String>

Associations between Track and transceiver’s media description.

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

transceivers_statuses: HashMap<TrackId, bool>

Statuses of Peer transceivers.

MakeSdpAnswer

Web Client sends SDP Answer.

Fields of MakeSdpAnswer

peer_id: PeerId

ID of the Peer for which Web Client sends SDP Answer.

sdp_answer: String

SDP Answer of the Peer.

transceivers_statuses: HashMap<TrackId, bool>

Statuses of Peer transceivers.

SetIceCandidate

Web Client sends Ice Candidate.

Fields of SetIceCandidate

peer_id: PeerIdcandidate: IceCandidate
AddPeerConnectionMetrics

Web Client sends Peer Connection metrics.

Fields of AddPeerConnectionMetrics

peer_id: PeerIdmetrics: PeerMetrics
UpdateTracks

Web Client asks permission to update Tracks in specified Peer. Media Server gives permission by sending Event::PeerUpdated.

Fields of UpdateTracks

peer_id: PeerIdtracks_patches: Vec<TrackPatchCommand>
SynchronizeMe

Web Client asks Media Server to synchronize Client State with a Server State.

Fields of SynchronizeMe

state: Room

Implementations

impl Command[src]

pub fn dispatch_with<T: CommandHandler>(
    self,
    handler: &mut T
) -> <T as CommandHandler>::Output
[src]

Dispatches Command with given CommandHandler.

Trait Implementations

impl Clone for Command[src]

impl Debug for Command[src]

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

impl PartialEq<Command> for Command[src]

impl Serialize for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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.