Enum medea_client_api_proto::Event [−][src]
WebSocket message from Medea to Jason.
Variants
Media Server notifies Client that he joined Room.
Fields of RoomJoined
member_id: MemberIdID of Member which joined Room.
Media Server notifies Client that he left Room.
Fields of RoomLeft
close_reason: CloseReasonCloseReason with which Client was left.
Media Server notifies Web Client about necessity of RTCPeerConnection creation.
Fields of PeerCreated
Media Server notifies Web Client about necessity to apply specified SDP Answer to Web Client’s RTCPeerConnection.
Media Server notifies Web Client that his SDP offer was applied.
Media Server notifies Web Client about necessity to apply specified ICE Candidate.
Fields of IceCandidateDiscovered
peer_id: PeerIdcandidate: IceCandidateMedia Server notifies Web Client about necessity of RTCPeerConnection close.
Media Server notifies about necessity to update Tracks in specified
Peer.
Fields of PeerUpdated
peer_id: PeerIdupdates: Vec<PeerUpdate>List of PeerUpdates which should be applied.
negotiation_role: Option<NegotiationRole>Negotiation role basing on which should be sent
Command::MakeSdpOffer or Command::MakeSdpAnswer.
If None then no (re)negotiation should be done.
Media Server notifies about connection quality score update.
Fields of ConnectionQualityUpdated
partner_member_id: MemberIdPartner MemberId of the Peer.
quality_score: ConnectionQualityScoreEstimated connection quality.
Media Server synchronizes Web Client about State synchronization.
Fields of StateSynchronized
state: RoomImplementations
impl Event[src]
pub async fn dispatch_with<T: EventHandler>(
self,
handler: &T
) -> <T as EventHandler>::Output[src]
self,
handler: &T
) -> <T as EventHandler>::Output
Dispatches Event with given EventHandler.
Trait Implementations
impl Clone for Event[src]
impl Debug for Event[src]
impl<'de> Deserialize<'de> for Event[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Event[src]
impl PartialEq<Event> for Event[src]
impl Serialize for Event[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for Event[src]
impl StructuralPartialEq for Event[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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>,