pub enum ManagerRequest {
ConfigurePlayback {
source_config: PlaybackSourceConfig,
responder: ManagerConfigurePlaybackResponder,
},
GetSensorsList {
responder: ManagerGetSensorsListResponder,
},
ConfigureSensorRates {
id: i32,
sensor_rate_config: SensorRateConfig,
responder: ManagerConfigureSensorRatesResponder,
},
Activate {
id: i32,
responder: ManagerActivateResponder,
},
Deactivate {
id: i32,
responder: ManagerDeactivateResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ManagerControlHandle,
method_type: MethodType,
},
}
Variants§
ConfigurePlayback
On Fuchsia configurations with sensor data playback enabled, the Playback protocol should be accessed through this protocol. If the Playback protocol is unavailable on a given Fuchsia configuration, this method will always return PLAYBACK_UNAVAILABLE.
GetSensorsList
Returns the list of sensors managed by the SensorManager.
Fields
§
responder: ManagerGetSensorsListResponder
ConfigureSensorRates
Configures the sampling period and reporting latency for a particular sensor.
Activate
Activates a sensor. Events will begin to appear in the stream of sensor events.
Deactivate
Deactivates a sensor. Events will no longer appear in the stream of sensor events.
_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: ManagerControlHandle
§
method_type: MethodType
Implementations§
Source§impl ManagerRequest
impl ManagerRequest
pub fn into_configure_playback( self, ) -> Option<(PlaybackSourceConfig, ManagerConfigurePlaybackResponder)>
pub fn into_get_sensors_list(self) -> Option<ManagerGetSensorsListResponder>
pub fn into_configure_sensor_rates( self, ) -> Option<(i32, SensorRateConfig, ManagerConfigureSensorRatesResponder)>
pub fn into_activate(self) -> Option<(i32, ManagerActivateResponder)>
pub fn into_deactivate(self) -> Option<(i32, ManagerDeactivateResponder)>
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 ManagerRequest
impl !RefUnwindSafe for ManagerRequest
impl Send for ManagerRequest
impl Sync for ManagerRequest
impl Unpin for ManagerRequest
impl !UnwindSafe for ManagerRequest
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