pub struct FixedValuesPlaybackConfig {
pub sensor_list: Option<Vec<SensorInfo>>,
pub sensor_events: Option<Vec<SensorEvent>>,
/* private fields */
}
Expand description
A playback configuration which will emit events from the provided list.
The list of SensorEvents will be sorted into separate lists by SensorId and then played back according to each sensor’s configured sample rate and max reporting latency. Thus the ordering of the entire list is only guaranteed to hold if all the SensorEvents are from the same sensor. Any timestamps or sequence numbers in the provided SensorEvents are ignored and overwritten.
There must be at least one event for every sensor in the sensor_list and there must not be any events for sensors that aren’t in the sensor_list.
Fields§
§sensor_list: Option<Vec<SensorInfo>>
Sensors that will be advertised through the Driver protocol.
Required.
sensor_events: Option<Vec<SensorEvent>>
SensorsEvents which will be played back through the Driver protocol.
Required.
Trait Implementations§
Source§impl Clone for FixedValuesPlaybackConfig
impl Clone for FixedValuesPlaybackConfig
Source§fn clone(&self) -> FixedValuesPlaybackConfig
fn clone(&self) -> FixedValuesPlaybackConfig
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 FixedValuesPlaybackConfig
impl Debug for FixedValuesPlaybackConfig
Source§impl<D: ResourceDialect> Decode<FixedValuesPlaybackConfig, D> for FixedValuesPlaybackConfig
impl<D: ResourceDialect> Decode<FixedValuesPlaybackConfig, D> for FixedValuesPlaybackConfig
Source§impl Default for FixedValuesPlaybackConfig
impl Default for FixedValuesPlaybackConfig
Source§fn default() -> FixedValuesPlaybackConfig
fn default() -> FixedValuesPlaybackConfig
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<FixedValuesPlaybackConfig, D> for &FixedValuesPlaybackConfig
impl<D: ResourceDialect> Encode<FixedValuesPlaybackConfig, D> for &FixedValuesPlaybackConfig
Source§impl TypeMarker for FixedValuesPlaybackConfig
impl TypeMarker for FixedValuesPlaybackConfig
Source§type Owned = FixedValuesPlaybackConfig
type Owned = FixedValuesPlaybackConfig
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 FixedValuesPlaybackConfig
impl ValueTypeMarker for FixedValuesPlaybackConfig
Source§type Borrowed<'a> = &'a FixedValuesPlaybackConfig
type Borrowed<'a> = &'a FixedValuesPlaybackConfig
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for FixedValuesPlaybackConfig
impl StructuralPartialEq for FixedValuesPlaybackConfig
Auto Trait Implementations§
impl Freeze for FixedValuesPlaybackConfig
impl RefUnwindSafe for FixedValuesPlaybackConfig
impl Send for FixedValuesPlaybackConfig
impl Sync for FixedValuesPlaybackConfig
impl Unpin for FixedValuesPlaybackConfig
impl UnwindSafe for FixedValuesPlaybackConfig
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
)