Struct fidl_fuchsia_bluetooth_test::PeerProxy
source · pub struct PeerProxy { /* private fields */ }
Implementations§
source§impl PeerProxy
impl PeerProxy
sourcepub fn take_event_stream(&self) -> PeerEventStream
pub fn take_event_stream(&self) -> PeerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn assign_connection_status(&self, status: HciError) -> QueryResponseFut<()>
pub fn assign_connection_status(&self, status: HciError) -> QueryResponseFut<()>
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) -> QueryResponseFut<Vec<ConnectionState>>
pub fn watch_connection_states(&self) -> QueryResponseFut<Vec<ConnectionState>>
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 PeerProxyInterface for PeerProxy
impl PeerProxyInterface for PeerProxy
type AssignConnectionStatusResponseFut = QueryResponseFut<()>
fn assign_connection_status( &self, status: HciError ) -> Self::AssignConnectionStatusResponseFut
fn emulate_le_connection_complete( &self, role: ConnectionRole ) -> Result<(), Error>
fn emulate_disconnection_complete(&self) -> Result<(), Error>
type WatchConnectionStatesResponseFut = QueryResponseFut<Vec<ConnectionState>>
fn watch_connection_states(&self) -> Self::WatchConnectionStatesResponseFut
source§impl Proxy for PeerProxy
impl Proxy for PeerProxy
§type Protocol = PeerMarker
type Protocol = PeerMarker
Proxy
controls.