Enum medea_client_api_proto::Command [−][src]
WebSocket message from Web Client to Media Server.
Variants
Request of Client to join Room.
Fields of JoinRoom
member_id: MemberIdID of Member with which Credential Client want to join.
credential: CredentialCredential of Client's Member.
Request of Client to leave Room.
Fields of LeaveRoom
member_id: MemberIdID of leaving Member.
Web Client sends SDP Offer.
Fields of MakeSdpOffer
peer_id: PeerIdID of the Peer for which Web Client sends SDP Offer.
sdp_offer: StringSDP 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.
Web Client sends SDP Answer.
Fields of MakeSdpAnswer
Web Client sends Ice Candidate.
Fields of SetIceCandidate
peer_id: PeerIdcandidate: IceCandidateWeb Client sends Peer Connection metrics.
Fields of AddPeerConnectionMetrics
peer_id: PeerIdmetrics: PeerMetricsWeb Client asks permission to update Tracks in specified Peer.
Media Server gives permission by sending Event::TracksApplied.
Fields of UpdateTracks
peer_id: PeerIdtracks_patches: Vec<TrackPatchCommand>Web Client asks Media Server to synchronize Client State with a Server State.
Fields of SynchronizeMe
state: RoomImplementations
impl Command[src]
pub fn dispatch_with<T: CommandHandler>(
self,
handler: &mut T
) -> <T as CommandHandler>::Output[src]
self,
handler: &mut T
) -> <T as CommandHandler>::Output
Dispatches Command with given CommandHandler.
Trait Implementations
impl Clone for Command[src]
impl Debug for Command[src]
impl<'de> Deserialize<'de> for Command[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<Command> for Command[src]
impl Serialize for Command[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Command[src]
Auto Trait Implementations
impl RefUnwindSafe for Command[src]
impl Send for Command[src]
impl Sync for Command[src]
impl Unpin for Command[src]
impl UnwindSafe for Command[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,