pub struct SensorFeatureReport {
pub report_interval: Option<i64>,
pub sensitivity: Option<Vec<i64>>,
pub reporting_state: Option<SensorReportingState>,
pub threshold_high: Option<Vec<i64>>,
pub threshold_low: Option<Vec<i64>>,
pub sampling_rate: Option<i64>,
/* private fields */
}
Expand description
A SensorFeatureReport describes the features of a given sensor. If a FeatureReport is sent to the Input Device it sets the configuration of the device. If a FeatureReport is requested from the Input Device it shows the device’s current configuration.
Fields§
§report_interval: Option<i64>
The time between reports sent by the sensor.
sensitivity: Option<Vec<i64>>
The sensitivity for various SensorType
. This vector must be given in
the order of the descriptor’s sensitivity
vector.
reporting_state: Option<SensorReportingState>
This determines when the sensor will send reports.
threshold_high: Option<Vec<i64>>
The high thresholds for various SensorType
. This vector must be given in
the order of the descriptor’s threshold_high
vector.
threshold_low: Option<Vec<i64>>
The low thresholds for various SensorType
. This vector must be given in
the order of the descriptor’s threshold_low
vector.
sampling_rate: Option<i64>
The rate at which the sensor is sampled.
Trait Implementations§
Source§impl Clone for SensorFeatureReport
impl Clone for SensorFeatureReport
Source§fn clone(&self) -> SensorFeatureReport
fn clone(&self) -> SensorFeatureReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SensorFeatureReport
impl Debug for SensorFeatureReport
Source§impl<D: ResourceDialect> Decode<SensorFeatureReport, D> for SensorFeatureReport
impl<D: ResourceDialect> Decode<SensorFeatureReport, D> for SensorFeatureReport
Source§impl Default for SensorFeatureReport
impl Default for SensorFeatureReport
Source§fn default() -> SensorFeatureReport
fn default() -> SensorFeatureReport
Source§impl<D: ResourceDialect> Encode<SensorFeatureReport, D> for &SensorFeatureReport
impl<D: ResourceDialect> Encode<SensorFeatureReport, D> for &SensorFeatureReport
Source§impl PartialEq for SensorFeatureReport
impl PartialEq for SensorFeatureReport
Source§impl TypeMarker for SensorFeatureReport
impl TypeMarker for SensorFeatureReport
Source§type Owned = SensorFeatureReport
type Owned = SensorFeatureReport
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for SensorFeatureReport
impl ValueTypeMarker for SensorFeatureReport
Source§type Borrowed<'a> = &'a SensorFeatureReport
type Borrowed<'a> = &'a SensorFeatureReport
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for SensorFeatureReport
impl StructuralPartialEq for SensorFeatureReport
Auto Trait Implementations§
impl Freeze for SensorFeatureReport
impl RefUnwindSafe for SensorFeatureReport
impl Send for SensorFeatureReport
impl Sync for SensorFeatureReport
impl Unpin for SensorFeatureReport
impl UnwindSafe for SensorFeatureReport
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)