pub struct CallManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CallManagerSynchronousProxy
impl CallManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CallManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CallManagerEvent, 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 peer_connected(
&self,
id: &PeerId,
handle: ServerEnd<PeerHandlerMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn peer_connected( &self, id: &PeerId, handle: ServerEnd<PeerHandlerMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Signal that a peer that supports the HFP Hands-Free role is connected.
id
is the unique identifier associated with the peer.
handle
is the channel that the call manager should use to manage
a the peer. If the call manager does not intend to handle a given peer,
it must close the handle with a ZX_ERR_UNAVAILABLE
epitaph.
Multiple concurrent PeerConnected requests can be made by the client. The empty response is used as a flow control mechanism to allow the client to limit the number of pending PeerConnected requests.
Trait Implementations§
Source§impl Debug for CallManagerSynchronousProxy
impl Debug for CallManagerSynchronousProxy
Source§impl SynchronousProxy for CallManagerSynchronousProxy
impl SynchronousProxy for CallManagerSynchronousProxy
Source§type Proxy = CallManagerProxy
type Proxy = CallManagerProxy
The async proxy for the same protocol.
Source§type Protocol = CallManagerMarker
type Protocol = CallManagerMarker
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 CallManagerSynchronousProxy
impl RefUnwindSafe for CallManagerSynchronousProxy
impl Send for CallManagerSynchronousProxy
impl Sync for CallManagerSynchronousProxy
impl Unpin for CallManagerSynchronousProxy
impl UnwindSafe for CallManagerSynchronousProxy
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