pub enum ConfigurePlaybackError {
PlaybackUnavailable,
InvalidConfigType,
ConfigMissingFields,
DuplicateSensorInfo,
NoEventsForSensor,
EventFromUnknownSensor,
EventSensorTypeMismatch,
EventPayloadTypeMismatch,
FileOpenFailed,
FileParseError,
// some variants omitted
}
Expand description
Errors that may be returned by ConfigurePlayback.
Variants§
The Playback component was unavailable in this configuration of Fuchsia.
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§
Source§impl ConfigurePlaybackError
impl ConfigurePlaybackError
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for ConfigurePlaybackError
impl Clone for ConfigurePlaybackError
Source§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 moreSource§impl Debug for ConfigurePlaybackError
impl Debug for ConfigurePlaybackError
Source§impl<D: ResourceDialect> Decode<ConfigurePlaybackError, D> for ConfigurePlaybackError
impl<D: ResourceDialect> Decode<ConfigurePlaybackError, D> for ConfigurePlaybackError
Source§impl<D: ResourceDialect> Encode<ConfigurePlaybackError, D> for ConfigurePlaybackError
impl<D: ResourceDialect> Encode<ConfigurePlaybackError, D> for ConfigurePlaybackError
Source§impl Hash for ConfigurePlaybackError
impl Hash for ConfigurePlaybackError
Source§impl Ord for ConfigurePlaybackError
impl Ord for ConfigurePlaybackError
Source§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,
Source§impl PartialEq for ConfigurePlaybackError
impl PartialEq for ConfigurePlaybackError
Source§impl PartialOrd for ConfigurePlaybackError
impl PartialOrd for ConfigurePlaybackError
Source§impl TypeMarker for ConfigurePlaybackError
impl TypeMarker for ConfigurePlaybackError
Source§type Owned = ConfigurePlaybackError
type Owned = ConfigurePlaybackError
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
.Source§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 moreSource§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 ConfigurePlaybackError
impl ValueTypeMarker for ConfigurePlaybackError
Source§type Borrowed<'a> = ConfigurePlaybackError
type Borrowed<'a> = ConfigurePlaybackError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ConfigurePlaybackError
impl Eq for ConfigurePlaybackError
impl StructuralPartialEq for ConfigurePlaybackError
Auto Trait Implementations§
impl Freeze for ConfigurePlaybackError
impl RefUnwindSafe for ConfigurePlaybackError
impl Send for ConfigurePlaybackError
impl Sync for ConfigurePlaybackError
impl Unpin for ConfigurePlaybackError
impl UnwindSafe for ConfigurePlaybackError
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
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
)