pub struct InputDeviceConfiguration {
pub device_name: String,
pub device_type: InputDeviceType,
pub source_states: Vec<SourceState>,
pub mutable_toggle_state: u64,
}
Fields§
§device_name: String
Name of the device.
Must be unique per device type. Can be empty if there is only one input device of this type.
device_type: InputDeviceType
The type of input device, e.g. MICROPHONE.
source_states: Vec<SourceState>
The sources (e.g. HARDWARE) with their corresponding states.
mutable_toggle_state: u64
The number representing the states that are toggleable by a client. This is the sum of the bitflags that are set.
Trait Implementations§
Source§impl Clone for InputDeviceConfiguration
impl Clone for InputDeviceConfiguration
Source§fn clone(&self) -> InputDeviceConfiguration
fn clone(&self) -> InputDeviceConfiguration
Returns a copy 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 InputDeviceConfiguration
impl Debug for InputDeviceConfiguration
Source§impl<'de> Deserialize<'de> for InputDeviceConfiguration
impl<'de> Deserialize<'de> for InputDeviceConfiguration
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
Source§impl PartialEq for InputDeviceConfiguration
impl PartialEq for InputDeviceConfiguration
impl StructuralPartialEq for InputDeviceConfiguration
Auto Trait Implementations§
impl Freeze for InputDeviceConfiguration
impl RefUnwindSafe for InputDeviceConfiguration
impl Send for InputDeviceConfiguration
impl Sync for InputDeviceConfiguration
impl Unpin for InputDeviceConfiguration
impl UnwindSafe for InputDeviceConfiguration
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)