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: MemberId
ID of Member
with which Credential
Client
want to join.
credential: Credential
Credential
of Client
’s Member
.
Request of Client
to leave Room
.
Fields of LeaveRoom
member_id: MemberId
ID of leaving Member
.
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.
Web Client sends SDP Answer.
Fields of MakeSdpAnswer
Web Client sends Ice Candidate.
Fields of SetIceCandidate
peer_id: PeerId
candidate: IceCandidate
Web Client sends Peer Connection metrics.
Fields of AddPeerConnectionMetrics
peer_id: PeerId
metrics: PeerMetrics
Web Client asks permission to update Track
s in specified Peer.
Media Server gives permission by sending Event::PeerUpdated
.
Fields of UpdateTracks
peer_id: PeerId
tracks_patches: Vec<TrackPatchCommand>
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]
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
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]
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>,