Struct FixedValuesPlaybackConfig
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§
§impl Clone for FixedValuesPlaybackConfig
impl Clone for FixedValuesPlaybackConfig
§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 more§impl Debug for FixedValuesPlaybackConfig
impl Debug for FixedValuesPlaybackConfig
§impl<D> Decode<FixedValuesPlaybackConfig, D> for FixedValuesPlaybackConfigwhere
D: ResourceDialect,
impl<D> Decode<FixedValuesPlaybackConfig, D> for FixedValuesPlaybackConfigwhere
D: ResourceDialect,
§fn new_empty() -> FixedValuesPlaybackConfig
fn new_empty() -> FixedValuesPlaybackConfig
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for FixedValuesPlaybackConfig
impl Default for FixedValuesPlaybackConfig
§fn default() -> FixedValuesPlaybackConfig
fn default() -> FixedValuesPlaybackConfig
Returns the “default value” for a type. Read more
§impl<D> Encode<FixedValuesPlaybackConfig, D> for &FixedValuesPlaybackConfigwhere
D: ResourceDialect,
impl<D> Encode<FixedValuesPlaybackConfig, D> for &FixedValuesPlaybackConfigwhere
D: ResourceDialect,
§impl PartialEq for FixedValuesPlaybackConfig
impl PartialEq for FixedValuesPlaybackConfig
§impl TypeMarker for FixedValuesPlaybackConfig
impl TypeMarker for FixedValuesPlaybackConfig
§type Owned = FixedValuesPlaybackConfig
type Owned = FixedValuesPlaybackConfig
The owned Rust type which this FIDL type decodes into.
§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.
§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.§impl ValueTypeMarker for FixedValuesPlaybackConfig
impl ValueTypeMarker for FixedValuesPlaybackConfig
§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 more§fn borrow(
value: &<FixedValuesPlaybackConfig as TypeMarker>::Owned,
) -> <FixedValuesPlaybackConfig as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<FixedValuesPlaybackConfig as TypeMarker>::Owned, ) -> <FixedValuesPlaybackConfig as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl 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