pub struct ConnectionProxy { /* private fields */ }
Implementations§
Source§impl ConnectionProxy
impl ConnectionProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.le/Connection.
Sourcepub fn take_event_stream(&self) -> ConnectionEventStream
pub fn take_event_stream(&self) -> ConnectionEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_codec_local_delay_range(
&self,
payload: &CodecDelayGetCodecLocalDelayRangeRequest,
) -> QueryResponseFut<CodecDelayGetCodecLocalDelayRangeResult, DefaultFuchsiaResourceDialect>
pub fn get_codec_local_delay_range( &self, payload: &CodecDelayGetCodecLocalDelayRangeRequest, ) -> QueryResponseFut<CodecDelayGetCodecLocalDelayRangeResult, DefaultFuchsiaResourceDialect>
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 Clone for ConnectionProxy
impl Clone for ConnectionProxy
Source§fn clone(&self) -> ConnectionProxy
fn clone(&self) -> ConnectionProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ConnectionProxyInterface for ConnectionProxy
impl ConnectionProxyInterface for ConnectionProxy
type GetCodecLocalDelayRangeResponseFut = QueryResponseFut<Result<CodecDelayGetCodecLocalDelayRangeResponse, i32>>
fn get_codec_local_delay_range( &self, payload: &CodecDelayGetCodecLocalDelayRangeRequest, ) -> Self::GetCodecLocalDelayRangeResponseFut
fn request_gatt_client( &self, client: ServerEnd<ClientMarker>, ) -> Result<(), Error>
fn accept_cis(&self, payload: ConnectionAcceptCisRequest) -> Result<(), Error>
fn connect_l2cap( &self, payload: ConnectionConnectL2capRequest, ) -> Result<(), Error>
Source§impl Debug for ConnectionProxy
impl Debug for ConnectionProxy
Source§impl Proxy for ConnectionProxy
impl Proxy for ConnectionProxy
Source§type Protocol = ConnectionMarker
type Protocol = ConnectionMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ConnectionProxy
impl !RefUnwindSafe for ConnectionProxy
impl Send for ConnectionProxy
impl Sync for ConnectionProxy
impl Unpin for ConnectionProxy
impl !UnwindSafe for ConnectionProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)