pub struct PeerSynchronousProxy { /* private fields */ }
Implementations§
source§impl PeerSynchronousProxy
impl PeerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<PeerEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<PeerEvent, 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 assign_connection_status(
&self,
status: HciError,
___deadline: Time
) -> Result<(), Error>
pub fn assign_connection_status( &self, status: HciError, ___deadline: Time ) -> Result<(), Error>
Assign a HCI status
for the controller to generate in response to connection requests.
Applies to all successive HCI_Create_Connection and HCI_LE_Create_Connection commands. The
procedure is acknowledged with an empty response.
sourcepub fn emulate_le_connection_complete(
&self,
role: ConnectionRole
) -> Result<(), Error>
pub fn emulate_le_connection_complete( &self, role: ConnectionRole ) -> Result<(), Error>
Emulates a LE connection event. Does nothing if the peer is already connected. The
role
parameter determines the link layer connection role.
sourcepub fn emulate_disconnection_complete(&self) -> Result<(), Error>
pub fn emulate_disconnection_complete(&self) -> Result<(), Error>
Emulate disconnection. Does nothing if the peer is not connected.
sourcepub fn watch_connection_states(
&self,
___deadline: Time
) -> Result<Vec<ConnectionState>, Error>
pub fn watch_connection_states( &self, ___deadline: Time ) -> Result<Vec<ConnectionState>, Error>
Watch connection state changes using the hanging get pattern. Notifies the most recent controller connection state if there has been a change since the last time this method was called.
Multiple calls to this method can be outstanding at a given time. All calls will resolve in a response as soon as there is a change to the connection state.
Trait Implementations§
source§impl Debug for PeerSynchronousProxy
impl Debug for PeerSynchronousProxy
source§impl SynchronousProxy for PeerSynchronousProxy
impl SynchronousProxy for PeerSynchronousProxy
§type Protocol = PeerMarker
type Protocol = PeerMarker
Proxy
controls.