pub struct HfpTestSynchronousProxy { /* private fields */ }
Implementations§
Source§impl HfpTestSynchronousProxy
impl HfpTestSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<HfpTestEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<HfpTestEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn battery_indicator(&self, level: u8) -> Result<(), Error>
pub fn battery_indicator(&self, level: u8) -> Result<(), Error>
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.
Sourcepub fn set_connection_behavior(
&self,
behavior: &ConnectionBehavior,
) -> Result<(), Error>
pub fn set_connection_behavior( &self, behavior: &ConnectionBehavior, ) -> Result<(), Error>
Configure the connection behavior when the component discovers new peers.
Trait Implementations§
Source§impl Debug for HfpTestSynchronousProxy
impl Debug for HfpTestSynchronousProxy
Source§impl SynchronousProxy for HfpTestSynchronousProxy
impl SynchronousProxy for HfpTestSynchronousProxy
Source§type Proxy = HfpTestProxy
type Proxy = HfpTestProxy
The async proxy for the same protocol.
Source§type Protocol = HfpTestMarker
type Protocol = HfpTestMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for HfpTestSynchronousProxy
impl RefUnwindSafe for HfpTestSynchronousProxy
impl Send for HfpTestSynchronousProxy
impl Sync for HfpTestSynchronousProxy
impl Unpin for HfpTestSynchronousProxy
impl UnwindSafe for HfpTestSynchronousProxy
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