Enum ConfigurePlaybackError
pub enum ConfigurePlaybackError {
InvalidConfigType,
ConfigMissingFields,
DuplicateSensorInfo,
NoEventsForSensor,
EventFromUnknownSensor,
EventSensorTypeMismatch,
EventPayloadTypeMismatch,
FileOpenFailed,
FileParseError,
// some variants omitted
}
Expand description
Errors that may be returned by ConfigurePlayback.
Variants§
InvalidConfigType
The type of the PlaybackSourceConfig union isn’t recognized/supported.
ConfigMissingFields
Some part of the provided playback config is missing fields.
DuplicateSensorInfo
A provided SensorInfo has a duplicate SensorId.
NoEventsForSensor
No SensorEvents were given for a provided SensorInfo.
EventFromUnknownSensor
A SensorEvent was seen with a SensorId for which no SensorInfo was provided.
EventSensorTypeMismatch
A SensorEvent was seen with a SensorType that does not match the corresponding SensorInfo.
EventPayloadTypeMismatch
A SensorEvent was seen with an EventPayload that doesn’t match its SensorType.
FileOpenFailed
The specified data file could not be opened.
FileParseError
The data in the specified file was not in the expected format.
NOTE: Some file types may allow for situations where the file is not fully read by the time configuration is complete. For example a call to ConfigurePlayback may only result in a file’s header being read and parsed. Thus ConfigurePlayback not returning this error is not always a guarantee that the whole file contains valid data.
Implementations§
§impl ConfigurePlaybackError
impl ConfigurePlaybackError
pub fn from_primitive(prim: u32) -> Option<ConfigurePlaybackError>
pub fn from_primitive_allow_unknown(prim: u32) -> ConfigurePlaybackError
pub fn unknown() -> ConfigurePlaybackError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for ConfigurePlaybackError
impl Clone for ConfigurePlaybackError
§fn clone(&self) -> ConfigurePlaybackError
fn clone(&self) -> ConfigurePlaybackError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ConfigurePlaybackError
impl Debug for ConfigurePlaybackError
§impl<D> Decode<ConfigurePlaybackError, D> for ConfigurePlaybackErrorwhere
D: ResourceDialect,
impl<D> Decode<ConfigurePlaybackError, D> for ConfigurePlaybackErrorwhere
D: ResourceDialect,
§fn new_empty() -> ConfigurePlaybackError
fn new_empty() -> ConfigurePlaybackError
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ConfigurePlaybackError, D> for ConfigurePlaybackErrorwhere
D: ResourceDialect,
impl<D> Encode<ConfigurePlaybackError, D> for ConfigurePlaybackErrorwhere
D: ResourceDialect,
§impl Hash for ConfigurePlaybackError
impl Hash for ConfigurePlaybackError
§impl Ord for ConfigurePlaybackError
impl Ord for ConfigurePlaybackError
§fn cmp(&self, other: &ConfigurePlaybackError) -> Ordering
fn cmp(&self, other: &ConfigurePlaybackError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ConfigurePlaybackError
impl PartialEq for ConfigurePlaybackError
§impl PartialOrd for ConfigurePlaybackError
impl PartialOrd for ConfigurePlaybackError
§impl TypeMarker for ConfigurePlaybackError
impl TypeMarker for ConfigurePlaybackError
§type Owned = ConfigurePlaybackError
type Owned = ConfigurePlaybackError
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for ConfigurePlaybackError
impl ValueTypeMarker for ConfigurePlaybackError
§type Borrowed<'a> = ConfigurePlaybackError
type Borrowed<'a> = ConfigurePlaybackError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ConfigurePlaybackError as TypeMarker>::Owned,
) -> <ConfigurePlaybackError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ConfigurePlaybackError as TypeMarker>::Owned, ) -> <ConfigurePlaybackError as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.