pub struct UpstreamDevice {
pub name: String,
pub kind: UpstreamDeviceKind,
pub vid: u16,
pub pid: u16,
pub source_path: String,
pub source_symbol: String,
pub upstream_features: Vec<UpstreamFeature>,
pub methods: Vec<String>,
pub matrix: Option<[u16; 2]>,
pub max_dpi: Option<u32>,
pub poll_rates_hz: Vec<u32>,
}Fields§
§name: String§kind: UpstreamDeviceKind§vid: u16§pid: u16§source_path: String§source_symbol: String§upstream_features: Vec<UpstreamFeature>§methods: Vec<String>§matrix: Option<[u16; 2]>§max_dpi: Option<u32>§poll_rates_hz: Vec<u32>Trait Implementations§
Source§impl Clone for UpstreamDevice
impl Clone for UpstreamDevice
Source§fn clone(&self) -> UpstreamDevice
fn clone(&self) -> UpstreamDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpstreamDevice
impl Debug for UpstreamDevice
Source§impl<'de> Deserialize<'de> for UpstreamDevice
impl<'de> Deserialize<'de> for UpstreamDevice
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
Auto Trait Implementations§
impl Freeze for UpstreamDevice
impl RefUnwindSafe for UpstreamDevice
impl Send for UpstreamDevice
impl Sync for UpstreamDevice
impl Unpin for UpstreamDevice
impl UnsafeUnpin for UpstreamDevice
impl UnwindSafe for UpstreamDevice
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