pub enum ProfileTestRequest {
    RegisterPeer {
        peer_id: PeerId,
        peer: ServerEnd<MockPeerMarker>,
        observer: ClientEnd<PeerObserverMarker>,
        responder: ProfileTestRegisterPeerResponder,
    },
}Expand description
The ProfileTest interface should be used to validate behavior of Bluetooth Profiles
that use the [fuchsia.bluetooth.bredr.Profile] service.
The ProfileTest interface is used to create and manage fake peers. A mock piconet is created in which registered peers can discover and interact with each other.
Variants§
RegisterPeer
Creates a new fake peer in the Profile Test Server database. An empty response is sent to indicate when registration is complete.
Use the provided [PeerObserver] interface to observe behavior of the registered peer.
Dropping the observer will cease the updates from the server for the associated peer.
If registration is unsuccessful, the peer and observer will be closed.
- request peer_idIdentifier for the created peer.
- request peerHandle that can be used to drive peer behavior using the [fuchsia.blueooth.bredr.MockPeer] interface.
- request observerRelay for communicating updates from the mock peer.
Fields
§
peer_id: PeerId§
peer: ServerEnd<MockPeerMarker>§
observer: ClientEnd<PeerObserverMarker>§
responder: ProfileTestRegisterPeerResponderImplementations§
Source§impl ProfileTestRequest
 
impl ProfileTestRequest
pub fn into_register_peer( self, ) -> Option<(PeerId, ServerEnd<MockPeerMarker>, ClientEnd<PeerObserverMarker>, ProfileTestRegisterPeerResponder)>
Sourcepub fn method_name(&self) -> &'static str
 
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfileTestRequest
impl !RefUnwindSafe for ProfileTestRequest
impl Send for ProfileTestRequest
impl Sync for ProfileTestRequest
impl Unpin for ProfileTestRequest
impl !UnwindSafe for ProfileTestRequest
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