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: MonotonicInstant,
) -> Result<PeerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<(), Error>
pub fn assign_connection_status( &self, status: HciError, ___deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<Vec<ConnectionState>, Error>
pub fn watch_connection_states( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<ConnectionState>, Error>
Returns a vector of the least to most recent controller connection states. This method returns when there has been a state change since the last invocation of this method by this client.
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 scan state.
Sourcepub fn set_device_class(
&self,
value: u32,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_device_class( &self, value: u32, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets the device class reported in the inquiry response for this peer during device
discovery. If the peer is not BR/EDR, the server will close with the ZX_ERR_NOT_SUPPORTED
epitaph.
Sourcepub fn set_service_definitions(
&self,
service_definitions: &[ServiceDefinition],
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_service_definitions( &self, service_definitions: &[ServiceDefinition], ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets the peer’s services that will be discoverable via Service Discovery Protocol. If the
peer is not BR/EDR, the server will close with the ZX_ERR_NOT_SUPPORTED
epitaph.
pub fn set_le_advertisement( &self, payload: &PeerSetLeAdvertisementRequest, ___deadline: MonotonicInstant, ) -> Result<PeerSetLeAdvertisementResult, Error>
Trait Implementations§
Source§impl Debug for PeerSynchronousProxy
impl Debug for PeerSynchronousProxy
Source§impl SynchronousProxy for PeerSynchronousProxy
impl SynchronousProxy for PeerSynchronousProxy
Source§type Protocol = PeerMarker
type Protocol = PeerMarker
Proxy
controls.