pub enum PeerObserverRequest {
    ServiceFound {
        peer_id: PeerId,
        protocol: Option<Vec<ProtocolDescriptor>>,
        attributes: Vec<Attribute>,
        responder: PeerObserverServiceFoundResponder,
    },
    PeerConnected {
        peer_id: PeerId,
        protocol: Vec<ProtocolDescriptor>,
        responder: PeerObserverPeerConnectedResponder,
    },
}Expand description
PeerObserver provides the integration test client with a way to validate the
behavior of a peer in the piconet.
Dropping PeerObserver will stop any subsequent updates for the peer.
Variants§
ServiceFound
The peer discovered the services of another peer in the piconet.
- request peer_idThe peer the service was found on.
- request protocolIncludes the ProtocolDescriptorList in the service record.
- request attributesContains all attributes requested from the search that are present on the peer record.
PeerConnected
Called when a peer has connected to a service.
- request peer_idThe peer that connected to the service.
- request protocolContains the protocol list of the connection.
Implementations§
Source§impl PeerObserverRequest
 
impl PeerObserverRequest
pub fn into_service_found( self, ) -> Option<(PeerId, Option<Vec<ProtocolDescriptor>>, Vec<Attribute>, PeerObserverServiceFoundResponder)>
pub fn into_peer_connected( self, ) -> Option<(PeerId, Vec<ProtocolDescriptor>, PeerObserverPeerConnectedResponder)>
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 PeerObserverRequest
impl !RefUnwindSafe for PeerObserverRequest
impl Send for PeerObserverRequest
impl Sync for PeerObserverRequest
impl Unpin for PeerObserverRequest
impl !UnwindSafe for PeerObserverRequest
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