pub struct ConnectConfig {
pub name: String,
pub device_type: DeviceType,
pub is_group: bool,
pub initial_volume: u16,
pub disable_volume: bool,
pub volume_steps: u16,
}Expand description
Configuration of the connect device
Fields§
§name: StringThe name of the connect device (default: librespot)
device_type: DeviceTypeThe icon type of the connect device (default: DeviceType::Speaker)
is_group: boolDisplays the DeviceType twice in the ui to show up as a group (default: false)
initial_volume: u16The volume with which the connect device will be initialized (default: 50%)
disable_volume: boolDisables the option to control the volume remotely (default: false)
volume_steps: u16Number of incremental steps (default: 64)
Trait Implementations§
Source§impl Clone for ConnectConfig
impl Clone for ConnectConfig
Source§fn clone(&self) -> ConnectConfig
fn clone(&self) -> ConnectConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectConfig
impl Debug for ConnectConfig
Auto Trait Implementations§
impl Freeze for ConnectConfig
impl RefUnwindSafe for ConnectConfig
impl Send for ConnectConfig
impl Sync for ConnectConfig
impl Unpin for ConnectConfig
impl UnwindSafe for ConnectConfig
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