pub struct VoiceState {Show 14 fields
pub community_id: String,
pub channel_id: String,
pub peers: Vec<VoicePeer>,
pub muted: bool,
pub deafened: bool,
pub audio: bool,
pub mic_level: f32,
pub mic: bool,
pub server_muted: bool,
pub server_deafened: bool,
pub sharing: bool,
pub viewers: u32,
pub camera: bool,
pub can_video: bool,
}Fields§
§community_id: String§channel_id: String§peers: Vec<VoicePeer>§muted: bool§deafened: bool§audio: boolFalse when no media engine runs here: in the call, but neither heard nor hearing.
mic_level: f32How loud our microphone is now, 0 to 1.
mic: boolFalse when there’s no microphone to hear: refused access, or none there.
server_muted: boolA moderator muted or deafened us for this call.
server_deafened: bool§sharing: boolWe are sharing our screen, and to how many; our camera is on.
viewers: u32§camera: bool§can_video: boolWe may send a camera or a screen in this Channel.
Trait Implementations§
Source§impl Clone for VoiceState
impl Clone for VoiceState
Source§impl Debug for VoiceState
impl Debug for VoiceState
Source§impl PartialEq for VoiceState
impl PartialEq for VoiceState
Source§impl Serialize for VoiceState
impl Serialize for VoiceState
impl StructuralPartialEq for VoiceState
Auto Trait Implementations§
impl Forget for VoiceState
impl Freeze for VoiceState
impl Move for VoiceState
impl RefUnwindSafe for VoiceState
impl Send for VoiceState
impl Sync for VoiceState
impl Unpin for VoiceState
impl UnsafeUnpin for VoiceState
impl UnwindSafe for VoiceState
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<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