pub struct HciTransportSynchronousProxy { /* private fields */ }
Implementations§
Source§impl HciTransportSynchronousProxy
impl HciTransportSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<HciTransportEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<HciTransportEvent, 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 send_(
&self,
payload: &SentPacket,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn send_( &self, payload: &SentPacket, ___deadline: MonotonicInstant, ) -> Result<(), Error>
More than one Send can be pending simultaneously. Prefer to limit the number of pending calls to avoid overflow. A maximum of 10 pending calls is suggested. If an event or SCO packet is received by the server, the server should close the protocol.
pub fn ack_receive(&self) -> Result<(), Error>
Sourcepub fn configure_sco(
&self,
payload: HciTransportConfigureScoRequest,
) -> Result<(), Error>
pub fn configure_sco( &self, payload: HciTransportConfigureScoRequest, ) -> Result<(), Error>
Establish a SCO connection. Only 1 SCO connection can be configured at a time.
Trait Implementations§
Source§impl Debug for HciTransportSynchronousProxy
impl Debug for HciTransportSynchronousProxy
Source§impl SynchronousProxy for HciTransportSynchronousProxy
impl SynchronousProxy for HciTransportSynchronousProxy
Source§type Proxy = HciTransportProxy
type Proxy = HciTransportProxy
The async proxy for the same protocol.
Source§type Protocol = HciTransportMarker
type Protocol = HciTransportMarker
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 HciTransportSynchronousProxy
impl RefUnwindSafe for HciTransportSynchronousProxy
impl Send for HciTransportSynchronousProxy
impl Sync for HciTransportSynchronousProxy
impl Unpin for HciTransportSynchronousProxy
impl UnwindSafe for HciTransportSynchronousProxy
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