#[non_exhaustive]pub enum CallEvent {
Show 14 variants
State(CallState),
Participants(Vec<Participant>),
Speaking(Vec<Speaking>),
Error(CallErrorEvent),
Moved(CallMoved),
Stats(Box<StatsWindow>),
Recording(Option<Box<CallRecording>>),
RecordingControls(Option<ServerControls>),
Security(CallSecurity),
VideoAdded(VideoTrack),
VideoRemoved {
id: u64,
track_sid: String,
},
VideoChanged(VideoTrack),
LocalVideo(LocalVideo),
MediaPolicy(Box<MediaPolicy>),
}Expand description
Something that happened in the call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
State(CallState)
The state changed.
Participants(Vec<Participant>)
The participants changed.
Speaking(Vec<Speaking>)
Speaking levels (at most 10 Hz).
Error(CallErrorEvent)
An error or warning.
Moved(CallMoved)
A moderator moved this member (Sew’s voice_server_updated): the call goes on in the
destination. Sent before the engine reconnects there; a re-join after it asks the
provider for CallMoved::room.
Stats(Box<StatsWindow>)
A stats window ended: its numbers, the beacon sample sent (if any) and Sew’s answer
(also in Call::stats).
Recording(Option<Box<CallRecording>>)
The call’s recording changed (Sew 0.7.3): started, someone answered, this person’s
prompt, or None once no recording is active (also Call::recording).
RecordingControls(Option<ServerControls>)
The person’s Record and Stop in the call’s room, from a Sew server that computes them
(also Call::recording_controls): a newer value, or None once a move took the call
to a room the server has sent none for yet. Never sent by an older server.
Security(CallSecurity)
The call’s key state or its security code changed (also CallSnapshot::security):
a new epoch, the keys securing or recovering, or a re-join’s new key session.
VideoAdded(VideoTrack)
A remote camera or screen track appeared (video-core builds). It is disabled at the
media server until the host opens a sink for it (Call::video_sink).
VideoRemoved
A remote video track ended (unpublished, or its publisher left).
VideoChanged(VideoTrack)
A remote video track changed: muted, its size or layers, its codec (known from its first packet), or paused by the server for congestion.
LocalVideo(LocalVideo)
A local camera or screen share went on (the SFU confirmed it) or off (and why:
unpublished, video_disabled, server_unpublished, lease_lost, …).
MediaPolicy(Box<MediaPolicy>)
The media policy changed (media_policy_updated, a move): the latest hints, with the
join’s camera_allowed and screen_allowed (also Call::media_policy).
Trait Implementations§
impl StructuralPartialEq for CallEvent
Auto Trait Implementations§
impl Forget for CallEvent
impl Freeze for CallEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Participant>: Freeze,
PhantomData<Speaking>: Freeze,
*const StatsWindow is !null: Freeze,
PhantomData<StatsWindow>: Freeze,
*const CallRecording is !null: Freeze,
PhantomData<CallRecording>: Freeze,
PhantomData<VideoLayerInfo>: Freeze,
*const MediaPolicy is !null: Freeze,
PhantomData<MediaPolicy>: Freeze,
impl Move for CallEvent
impl RefUnwindSafe for CallEvent
impl Send for CallEventwhere
RawVecInner: Send,
BoxRaw<StatsWindow>: Send,
BoxRaw<CallRecording>: Send,
BoxRaw<MediaPolicy>: Send,
impl Sync for CallEventwhere
RawVecInner: Sync,
BoxRaw<StatsWindow>: Sync,
BoxRaw<CallRecording>: Sync,
BoxRaw<MediaPolicy>: Sync,
impl Unpin for CallEventwhere
*const u8 is !null: Unpin,
Box<StatsWindow>: Unpin,
Box<CallRecording>: Unpin,
Box<MediaPolicy>: Unpin,
impl UnsafeUnpin for CallEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Participant>: UnsafeUnpin,
PhantomData<Speaking>: UnsafeUnpin,
*const StatsWindow is !null: UnsafeUnpin,
PhantomData<StatsWindow>: UnsafeUnpin,
*const CallRecording is !null: UnsafeUnpin,
PhantomData<CallRecording>: UnsafeUnpin,
PhantomData<VideoLayerInfo>: UnsafeUnpin,
*const MediaPolicy is !null: UnsafeUnpin,
PhantomData<MediaPolicy>: UnsafeUnpin,
impl UnwindSafe for CallEventwhere
RawVecInner: UnwindSafe,
BoxRaw<StatsWindow>: UnwindSafe,
BoxRaw<CallRecording>: UnwindSafe,
BoxRaw<MediaPolicy>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more