pub struct VoiceParticipant {
pub member_id: MemberId,
pub voice_session: VoiceSessionId,
pub key_package: Option<Opaque>,
pub member_public_key: Option<PublicKey>,
pub self_mute: bool,
pub self_deaf: bool,
pub server_mute: bool,
pub server_deaf: bool,
pub can_speak: bool,
}Expand description
One member in a voice channel.
Fields§
§member_id: MemberIdThe member.
voice_session: VoiceSessionIdThis stay in the channel; a rejoin gets a new one.
key_package: Option<Opaque>The member’s key package for this stay (opaque to the host). Only participants of the same channel receive it; other viewers see the participant without it.
member_public_key: Option<PublicKey>The member’s public key, sent with key_package: the key that signed it (ADR-0018).
Participants verify the key package and the member’s sender keys under it.
self_mute: boolMuted by the member.
self_deaf: boolDeafened by the member.
server_mute: boolMuted by a moderator (MUTE_MEMBERS); kept across stays.
server_deaf: boolDeafened by a moderator (DEAFEN_MEMBERS); kept across stays.
can_speak: boolWhether the member holds SPEAK in the channel. Clients do not play the audio of a
participant who may not speak or is server-muted.
Trait Implementations§
Source§impl Clone for VoiceParticipant
impl Clone for VoiceParticipant
Source§fn clone(&self) -> VoiceParticipant
fn clone(&self) -> VoiceParticipant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceParticipant
impl Debug for VoiceParticipant
Source§impl<'de> Deserialize<'de> for VoiceParticipant
impl<'de> Deserialize<'de> for VoiceParticipant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VoiceParticipant
Source§impl PartialEq for VoiceParticipant
impl PartialEq for VoiceParticipant
Source§impl Serialize for VoiceParticipant
impl Serialize for VoiceParticipant
impl StructuralPartialEq for VoiceParticipant
Auto Trait Implementations§
impl Freeze for VoiceParticipant
impl RefUnwindSafe for VoiceParticipant
impl Send for VoiceParticipant
impl Sync for VoiceParticipant
impl Unpin for VoiceParticipant
impl UnsafeUnpin for VoiceParticipant
impl UnwindSafe for VoiceParticipant
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