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: MonotonicInstant,
) -> Result<ConnectionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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 get_codec_local_delay_range(
&self,
payload: &CodecDelayGetCodecLocalDelayRangeRequest,
___deadline: MonotonicInstant,
) -> Result<CodecDelayGetCodecLocalDelayRangeResult, Error>
pub fn get_codec_local_delay_range( &self, payload: &CodecDelayGetCodecLocalDelayRangeRequest, ___deadline: MonotonicInstant, ) -> Result<CodecDelayGetCodecLocalDelayRangeResult, Error>
Retrieve the range of controller delay for the codec specified with the provided stream attributes.
On success, returns the minimum and maximum allowed delay.
Returns ZX_ERR_NOT_SUPPORTED if reading the delay is not supported. Returns ZX_ERR_INTERNAL for all other failures.
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.
Sourcepub fn connect_l2cap(
&self,
payload: ConnectionConnectL2capRequest,
) -> Result<(), Error>
pub fn connect_l2cap( &self, payload: ConnectionConnectL2capRequest, ) -> Result<(), Error>
Connect to an L2CAP LE connection-oriented channel.
Trait Implementations§
Source§impl Debug for ConnectionSynchronousProxy
impl Debug for ConnectionSynchronousProxy
Source§impl SynchronousProxy for ConnectionSynchronousProxy
impl SynchronousProxy for ConnectionSynchronousProxy
Source§type Proxy = ConnectionProxy
type Proxy = ConnectionProxy
Source§type Protocol = ConnectionMarker
type Protocol = ConnectionMarker
Proxy
controls.