pub enum PeerManagerRequest {
GetPeer {
peer_id: PeerId,
handle: ServerEnd<PeerControllerMarker>,
control_handle: PeerManagerControlHandle,
},
ConnectedPeers {
responder: PeerManagerConnectedPeersResponder,
},
}
Expand description
Control service for an AVDTP Peer.
Variants§
GetPeer
Connects to the server specified by a peer_id
.
On success, handle
will be used for initiating PeerController procedures.
On peer disconnect, the handle will be dropped and closed on the server side.
Fields
§
peer_id: PeerId
§
handle: ServerEnd<PeerControllerMarker>
§
control_handle: PeerManagerControlHandle
ConnectedPeers
Returns the bt.PeerId
of each currently connected peer.
Fields
§
responder: PeerManagerConnectedPeersResponder
Implementations§
Source§impl PeerManagerRequest
impl PeerManagerRequest
pub fn into_get_peer( self, ) -> Option<(PeerId, ServerEnd<PeerControllerMarker>, PeerManagerControlHandle)>
pub fn into_connected_peers(self) -> Option<PeerManagerConnectedPeersResponder>
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 PeerManagerRequest
impl !RefUnwindSafe for PeerManagerRequest
impl Send for PeerManagerRequest
impl Sync for PeerManagerRequest
impl Unpin for PeerManagerRequest
impl !UnwindSafe for PeerManagerRequest
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