pub enum RiftEvent {
Show 15 variants
IncomingChat(ChatMessage),
IncomingCall {
session: SessionId,
from: PeerId,
rndzv_srt_uri: Option<String>,
},
CallStateChanged {
session: SessionId,
state: CallState,
},
PeerJoinedChannel {
peer: PeerId,
channel: String,
},
PeerLeftChannel {
peer: PeerId,
channel: String,
},
PeerCapabilities {
peer: PeerId,
capabilities: Capabilities,
},
AudioLevel {
peer: PeerId,
level: f32,
},
CodecSelected {
codec: CodecId,
},
AudioBitrate {
bitrate: u32,
},
StatsUpdate {
peer: PeerId,
stats: LinkStats,
global: GlobalStats,
},
RouteUpdated {
peer: PeerId,
route: RouteKind,
},
GroupTopology {
session: SessionId,
mode: GroupMode,
},
PeerFingerprint {
peer: PeerId,
fingerprint: String,
},
SecurityNotice {
message: String,
},
VoiceFrame {
peer: PeerId,
samples: Vec<i16>,
},
}Variants§
IncomingChat(ChatMessage)
Incoming chat message.
IncomingCall
Incoming call invitation.
CallStateChanged
Call state changes (ringing/active/ended).
PeerJoinedChannel
A peer joined the channel.
PeerLeftChannel
A peer left the channel.
PeerCapabilities
Peer capability advertisement.
AudioLevel
Audio level update for UI metering.
CodecSelected
Codec selection update.
AudioBitrate
Audio bitrate update for diagnostics.
StatsUpdate
Periodic stats update.
RouteUpdated
Routing update for a peer.
GroupTopology
Group topology update.
PeerFingerprint
Peer fingerprint for trust UX.
SecurityNotice
Security-related notice (TOFU, mismatch, etc).
VoiceFrame
Raw voice samples (when enabled).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RiftEvent
impl RefUnwindSafe for RiftEvent
impl Send for RiftEvent
impl Sync for RiftEvent
impl Unpin for RiftEvent
impl UnwindSafe for RiftEvent
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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