pub struct ConnectionSynchronousProxy { /* private fields */ }
Implementations§
source§impl ConnectionSynchronousProxy
impl ConnectionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ConnectionEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ConnectionEvent, 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 request_gatt_client(
&self,
client: ServerEnd<ClientMarker>
) -> Result<(), Error>
pub fn request_gatt_client( &self, client: ServerEnd<ClientMarker> ) -> Result<(), Error>
The following epitaphs may be sent by the server on error:
ZX_ERR_ALREADY_BOUND
: A Client server has already been bound in this Connection protocol. The existing Client should be used.
sourcepub fn accept_cis(
&self,
payload: ConnectionAcceptCisRequest
) -> Result<(), Error>
pub fn accept_cis( &self, payload: ConnectionAcceptCisRequest ) -> Result<(), Error>
Accept a future CIS request from the peer with the specified CIG/CIS values. All CIS requests that have not explicitly been allowed will be rejected.
The provided IsochronousStream will be used for future notification of established connections.
The host may wait for multiple incoming connections simultaneously, although each must have a combination of CIG/CIS values that is unique to this connection.
If we are not operating in the peripheral role in this connection, connection_stream will be closed with a ZX_ERR_NOT_SUPPORTED epitaph.
If we are already waiting for another connection with the same combination of CIG/CIS values, connection_stream will be closed with a ZX_ERR_INVALID_ARGS epitaph.
Trait Implementations§
source§impl Debug for ConnectionSynchronousProxy
impl Debug for ConnectionSynchronousProxy
source§impl SynchronousProxy for ConnectionSynchronousProxy
impl SynchronousProxy for ConnectionSynchronousProxy
§type Proxy = ConnectionProxy
type Proxy = ConnectionProxy
§type Protocol = ConnectionMarker
type Protocol = ConnectionMarker
Proxy
controls.