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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl SearchResultsProxyInterface for SearchResultsProxy
impl SearchResultsProxyInterface for SearchResultsProxy
type ServiceFoundResponseFut = QueryResponseFut<()>
fn service_found( &self, peer_id: &PeerId, protocol: Option<&[ProtocolDescriptor]>, attributes: &[Attribute], ) -> Self::ServiceFoundResponseFut
Auto Trait Implementations§
impl Freeze for SearchResultsProxy
impl !RefUnwindSafe for SearchResultsProxy
impl Send for SearchResultsProxy
impl Sync for SearchResultsProxy
impl Unpin for SearchResultsProxy
impl !UnwindSafe for SearchResultsProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)