pub enum HfpTestRequest {
BatteryIndicator {
level: u8,
control_handle: HfpTestControlHandle,
},
SetConnectionBehavior {
behavior: ConnectionBehavior,
control_handle: HfpTestControlHandle,
},
}
Expand description
Provides additional methods not in Hfp
that are strictly for testing.
Variants§
BatteryIndicator
Set the value of the AG battery indicator.
level
must be within the range 0-5 inclusive. Values outside of this
range cause the channel to close.
SetConnectionBehavior
Configure the connection behavior when the component discovers new peers.
Implementations§
source§impl HfpTestRequest
impl HfpTestRequest
pub fn into_battery_indicator(self) -> Option<(u8, HfpTestControlHandle)>
pub fn into_set_connection_behavior( self ) -> Option<(ConnectionBehavior, HfpTestControlHandle)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL