pub enum PlaybackRequest {
ConfigurePlayback {
source_config: PlaybackSourceConfig,
responder: PlaybackConfigurePlaybackResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: PlaybackControlHandle,
method_type: MethodType,
},
}
Expand description
Implemented by components which pretend to be a sensor driver but instead emit prerecorded or pregenerated data. Those components will also implement the fuchsia.hardware.sensors.Driver protocol which will be used to actually control the playback of data. This protocol is used to set up the playback data source and playback specific parameters.
Variants§
ConfigurePlayback
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: PlaybackControlHandle
§
method_type: MethodType
Implementations§
Source§impl PlaybackRequest
impl PlaybackRequest
pub fn into_configure_playback( self, ) -> Option<(PlaybackSourceConfig, PlaybackConfigurePlaybackResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlaybackRequest
impl !RefUnwindSafe for PlaybackRequest
impl Send for PlaybackRequest
impl Sync for PlaybackRequest
impl Unpin for PlaybackRequest
impl !UnwindSafe for PlaybackRequest
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
Mutably borrows from an owned value. Read more