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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HfpTestRequest
impl !RefUnwindSafe for HfpTestRequest
impl Send for HfpTestRequest
impl Sync for HfpTestRequest
impl Unpin for HfpTestRequest
impl !UnwindSafe for HfpTestRequest
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