pub struct MicSwitch { /* private fields */ }Expand description
The person’s own mic switch. It starts muted: unmuting is a deliberate first step.
Implementations§
Source§impl MicSwitch
impl MicSwitch
Sourcepub fn set_push_to_talk(&self, on: bool)
pub fn set_push_to_talk(&self, on: bool)
Push to talk on or off. With it on, the mic sends only while the talk key is held.
Sourcepub fn push_to_talk(&self) -> bool
pub fn push_to_talk(&self) -> bool
Whether push to talk is on.
Sourcepub fn set_pressed(&self, pressed: bool)
pub fn set_pressed(&self, pressed: bool)
The talk key is held (push to talk).
Sourcepub fn set_forced_mute(&self, forced: bool)
pub fn set_forced_mute(&self, forced: bool)
Muted from outside (the host, a policy, a kick): wins over the person’s own switch until lifted.
Sourcepub fn forced_mute(&self) -> bool
pub fn forced_mute(&self) -> bool
Whether a mute from outside holds.
Trait Implementations§
Auto Trait Implementations§
impl Forget for MicSwitch
impl Freeze for MicSwitch
impl Move for MicSwitch
impl RefUnwindSafe for MicSwitch
impl Send for MicSwitch
impl Sync for MicSwitch
impl Unpin for MicSwitch
impl UnsafeUnpin for MicSwitchwhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for MicSwitch
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