pub enum VoiceEvent {
Joined(VoiceParticipant),
Updated(VoiceParticipant),
Left {
member: MemberId,
reason: VoiceLeftReason,
},
Connected(MemberId),
Audio {
member: MemberId,
frame: Vec<u8>,
},
Rekeyed(u32),
KeyChanged {
member: MemberId,
},
Ended {
reason: Option<VoiceLeftReason>,
moved_to: Option<ChannelId>,
},
Warning(String),
}Expand description
What happens in a voice session.
Variants§
Joined(VoiceParticipant)
Someone joined the channel (no key package: that stays inside the session).
Updated(VoiceParticipant)
Someone changed mute or deafen, or a moderator did.
Left
Someone left the channel.
Connected(MemberId)
The media connection to a participant is up.
Audio
An Opus frame from a participant, decrypted.
Rekeyed(u32)
This member’s keys moved to a new epoch (someone joined or left).
KeyChanged
The host listed another key for member than the one this client saw first, so the
participant was skipped: no media and no keys go to it. Either the member replaced its
key, or the host is putting itself in the member’s place; compare
Member::fingerprint with the member out of band.
Fields
member: MemberIdThe member whose key changed.
Ended
The session ended: left, moved or disconnected by a moderator, the host went away, or
the media relay ended the allocation (never replaced by a direct path).
When moved, rejoin in moved_to with Channel::join.
Fields
Warning(String)
Something was skipped safely (a peer whose key package did not verify, a refused signal); the text names no key or address.
Trait Implementations§
Source§impl Clone for VoiceEvent
impl Clone for VoiceEvent
Source§fn clone(&self) -> VoiceEvent
fn clone(&self) -> VoiceEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more