pub enum MockPeerRequest {
ConnectProxy_ {
interface: ServerEnd<ProfileMarker>,
responder: MockPeerConnectProxy_Responder,
},
}
Expand description
MockPeer
provides an interface for managing the lifetime of a mock peer in the piconet.
Dropping MockPeer
will unregister the peer from the Profile Test Server database.
- Any launched components associated with the mock peer will be terminated.
- Any actively connected
ProfileProxy
will be disconnected and dropped.
Variants§
ConnectProxy_
Connect a channel to the [fuchsia.bluetooth.bredr.Profile
] protocol for
manipulation of the mock peer.
It is valid to connect multiple proxies to a MockPeer
.
This parallels the current behavior of the bluetooth profile components.
Specifically, profiles internally use the [fuchsia.bluetooth.bredr.Profile
]
service to register, search, and connect services. ConnectProxy
provides a way
for the test client to do the same for a given mock peer.
If the interface
is not connectable, it will be dropped with an epitaph
signaling the failure.
- request
interface
Interface to drive mock peer behavior.
Implementations§
Source§impl MockPeerRequest
impl MockPeerRequest
pub fn into_connect_proxy_( self, ) -> Option<(ServerEnd<ProfileMarker>, MockPeerConnectProxy_Responder)>
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 MockPeerRequest
impl !RefUnwindSafe for MockPeerRequest
impl Send for MockPeerRequest
impl Sync for MockPeerRequest
impl Unpin for MockPeerRequest
impl !UnwindSafe for MockPeerRequest
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