pub struct SearchResultsProxy { /* private fields */ }
Implementations§
Source§impl SearchResultsProxy
impl SearchResultsProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.bredr/SearchResults.
Sourcepub fn take_event_stream(&self) -> SearchResultsEventStream
pub fn take_event_stream(&self) -> SearchResultsEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn service_found(
&self,
peer_id: &PeerId,
protocol: Option<&[ProtocolDescriptor]>,
attributes: &[Attribute],
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn service_found( &self, peer_id: &PeerId, protocol: Option<&[ProtocolDescriptor]>, attributes: &[Attribute], ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Called when a search this client added finds a matching service on a peer.
peer_id
is the peer the service was found on.
protocol
includes the ProtocolDescriptorList in the service record if it exists
(it is also included in attributes
.)
attributes
contains all attributes requested from the search that are present on the
peer record. It may also include additional attributes.
Each ServiceFound call should be acknowledged by replying.
A limited amount of unacknowledged results will be sent on the channel. Results may be
dropped if results are received while too many results are unacknowledged.
Trait Implementations§
Source§impl Clone for SearchResultsProxy
impl Clone for SearchResultsProxy
Source§fn clone(&self) -> SearchResultsProxy
fn clone(&self) -> SearchResultsProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SearchResultsProxy
impl Debug for SearchResultsProxy
Source§impl Proxy for SearchResultsProxy
impl Proxy for SearchResultsProxy
Source§type Protocol = SearchResultsMarker
type Protocol = SearchResultsMarker
Proxy
controls.