Skip to main content

Headset

Struct Headset 

Source
pub struct Headset { /* private fields */ }

Implementations§

Source§

impl Headset

Source

pub fn id(&self) -> &str

Source

pub fn name(&self) -> &str

Source

pub fn product_id(&self) -> u16

Source

pub fn capabilities(&self) -> Capabilities

Source

pub fn metadata(&self) -> DeviceMetadata<'_>

Source

pub fn equalizer_info(&self) -> Result<EqualizerInfo>

Source

pub fn equalizer_presets(&self) -> Result<&'static [EqualizerPreset]>

Source

pub fn parametric_equalizer_info(&self) -> Option<ParametricEqualizerInfo>

Source

pub fn get_battery(&mut self) -> Result<BatteryInfo>

Source

pub fn get_chatmix(&mut self) -> Result<ChatmixInfo>

Source

pub fn get_status(&mut self) -> Result<HeadsetStatus>

Source

pub fn set_sidetone(&mut self, level: u8) -> Result<()>

Source

pub fn set_inactive_time(&mut self, minutes: u16) -> Result<()>

Source

pub fn set_equalizer(&mut self, bands: &[f32; 10]) -> Result<()>

Source

pub fn set_equalizer_preset(&mut self, preset: usize) -> Result<()>

Source

pub fn set_microphone_volume(&mut self, volume: u8) -> Result<()>

Source

pub fn set_microphone_mute_led_brightness( &mut self, brightness: u8, ) -> Result<()>

Source

pub fn set_volume_limiter(&mut self, enabled: bool) -> Result<()>

Source

pub fn set_parametric_equalizer( &mut self, bands: &[ParametricEqualizerBand], ) -> Result<()>

Source

pub fn set_bluetooth_when_powered_on(&mut self, enabled: bool) -> Result<()>

Source

pub fn set_bluetooth_call_volume( &mut self, mode: BluetoothCallVolumeMode, ) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.