pub enum DriverConfigRequest {
SetPollingConfig {
payload: PollingConfig,
responder: DriverConfigSetPollingConfigResponder,
},
GetPollingConfig {
responder: DriverConfigGetPollingConfigResponder,
},
ResetPollingConfig {
responder: DriverConfigResetPollingConfigResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DriverConfigControlHandle,
method_type: MethodType,
},
}Expand description
Interface implemented by the ODPM driver to configure polling parameters. Settings apply to all devices exposed by fuchsia.hardware.google.odpm/Service
Variants§
SetPollingConfig
Overrides polling configuration parameters. Any omitted fields in PollingConfig
remain unchanged.
Returns ZX_ERR_INVALID_ARGS if poll_interval is less than MIN_POLL_INTERVAL or
polls_per_series_entry == 0.
GetPollingConfig
Retrieves the current polling configuration parameters.
Fields
§
responder: DriverConfigGetPollingConfigResponderResetPollingConfig
Resets polling configuration parameters to the driver’s default values.
Fields
§
responder: DriverConfigResetPollingConfigResponder#[non_exhaustive]_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: DriverConfigControlHandle§
method_type: MethodTypeImplementations§
Source§impl DriverConfigRequest
impl DriverConfigRequest
pub fn into_set_polling_config( self, ) -> Option<(PollingConfig, DriverConfigSetPollingConfigResponder)>
pub fn into_get_polling_config( self, ) -> Option<DriverConfigGetPollingConfigResponder>
pub fn into_reset_polling_config( self, ) -> Option<DriverConfigResetPollingConfigResponder>
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 !RefUnwindSafe for DriverConfigRequest
impl !UnwindSafe for DriverConfigRequest
impl Freeze for DriverConfigRequest
impl Send for DriverConfigRequest
impl Sync for DriverConfigRequest
impl Unpin for DriverConfigRequest
impl UnsafeUnpin for DriverConfigRequest
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