pub struct PeerObserverSynchronousProxy { /* private fields */ }Implementations§
Source§impl PeerObserverSynchronousProxy
 
impl PeerObserverSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
    &self,
    deadline: MonotonicInstant,
) -> Result<PeerObserverEvent, Error>
 
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PeerObserverEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn service_found(
    &self,
    peer_id: &PeerId,
    protocol: Option<&[ProtocolDescriptor]>,
    attributes: &[Attribute],
    ___deadline: MonotonicInstant,
) -> Result<(), Error>
 
pub fn service_found( &self, peer_id: &PeerId, protocol: Option<&[ProtocolDescriptor]>, attributes: &[Attribute], ___deadline: MonotonicInstant, ) -> Result<(), Error>
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.
Sourcepub fn peer_connected(
    &self,
    peer_id: &PeerId,
    protocol: &[ProtocolDescriptor],
    ___deadline: MonotonicInstant,
) -> Result<(), Error>
 
pub fn peer_connected( &self, peer_id: &PeerId, protocol: &[ProtocolDescriptor], ___deadline: MonotonicInstant, ) -> Result<(), Error>
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.
Trait Implementations§
Source§impl Debug for PeerObserverSynchronousProxy
 
impl Debug for PeerObserverSynchronousProxy
Source§impl From<Channel> for PeerObserverSynchronousProxy
Available on Fuchsia only. 
impl From<Channel> for PeerObserverSynchronousProxy
Available on Fuchsia only.
Source§impl From<PeerObserverSynchronousProxy> for Handle
Available on Fuchsia only. 
impl From<PeerObserverSynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: PeerObserverSynchronousProxy) -> Self
 
fn from(value: PeerObserverSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PeerObserverSynchronousProxy
Available on Fuchsia only. 
impl FromClient for PeerObserverSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = PeerObserverMarker
 
type Protocol = PeerObserverMarker
The protocol.
Source§fn from_client(value: ClientEnd<PeerObserverMarker>) -> Self
 
fn from_client(value: ClientEnd<PeerObserverMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PeerObserverSynchronousProxy
Available on Fuchsia only. 
impl SynchronousProxy for PeerObserverSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = PeerObserverProxy
 
type Proxy = PeerObserverProxy
The async proxy for the same protocol.
Source§type Protocol = PeerObserverMarker
 
type Protocol = PeerObserverMarker
The protocol which this 
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
 
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
 
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
 
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PeerObserverSynchronousProxy
impl RefUnwindSafe for PeerObserverSynchronousProxy
impl Send for PeerObserverSynchronousProxy
impl Sync for PeerObserverSynchronousProxy
impl Unpin for PeerObserverSynchronousProxy
impl UnwindSafe for PeerObserverSynchronousProxy
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