pub struct PeerControllerSynchronousProxy { /* private fields */ }Implementations§
Source§impl PeerControllerSynchronousProxy
impl PeerControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PeerControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PeerControllerEvent, 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 get_known_peers(
&self,
___deadline: MonotonicInstant,
) -> Result<PeerControllerGetKnownPeersResult, Error>
pub fn get_known_peers( &self, ___deadline: MonotonicInstant, ) -> Result<PeerControllerGetKnownPeersResult, Error>
Get a list of discovered peers.
- error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn connect_peer(
&self,
payload: &PeerSelector,
___deadline: MonotonicInstant,
) -> Result<PeerControllerConnectPeerResult, Error>
pub fn connect_peer( &self, payload: &PeerSelector, ___deadline: MonotonicInstant, ) -> Result<PeerControllerConnectPeerResult, Error>
Connect to a peer.
- error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn disconnect_peer(
&self,
payload: &PeerSelector,
___deadline: MonotonicInstant,
) -> Result<PeerControllerDisconnectPeerResult, Error>
pub fn disconnect_peer( &self, payload: &PeerSelector, ___deadline: MonotonicInstant, ) -> Result<PeerControllerDisconnectPeerResult, Error>
Disconnect all logical links (BR/EDR & LE) to a peer.
- error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn pair(
&self,
payload: &PeerControllerPairRequest,
___deadline: MonotonicInstant,
) -> Result<PeerControllerPairResult, Error>
pub fn pair( &self, payload: &PeerControllerPairRequest, ___deadline: MonotonicInstant, ) -> Result<PeerControllerPairResult, Error>
Initiate pairing with a peer.
- error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn forget_peer(
&self,
payload: &PeerSelector,
___deadline: MonotonicInstant,
) -> Result<PeerControllerForgetPeerResult, Error>
pub fn forget_peer( &self, payload: &PeerSelector, ___deadline: MonotonicInstant, ) -> Result<PeerControllerForgetPeerResult, Error>
Forget a peer and all its bonding information.
- error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn set_discovery(
&self,
payload: &PeerControllerSetDiscoveryRequest,
___deadline: MonotonicInstant,
) -> Result<PeerControllerSetDiscoveryResult, Error>
pub fn set_discovery( &self, payload: &PeerControllerSetDiscoveryRequest, ___deadline: MonotonicInstant, ) -> Result<PeerControllerSetDiscoveryResult, Error>
Set discovery state.
- error Returns
INTERNALif the operation failed (check logs).
Trait Implementations§
Source§impl From<Channel> for PeerControllerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for PeerControllerSynchronousProxy
Available on Fuchsia only.
Source§impl From<PeerControllerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<PeerControllerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: PeerControllerSynchronousProxy) -> Self
fn from(value: PeerControllerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PeerControllerSynchronousProxy
Available on Fuchsia only.
impl FromClient for PeerControllerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = PeerControllerMarker
type Protocol = PeerControllerMarker
The protocol.
Source§fn from_client(value: ClientEnd<PeerControllerMarker>) -> Self
fn from_client(value: ClientEnd<PeerControllerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PeerControllerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for PeerControllerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = PeerControllerProxy
type Proxy = PeerControllerProxy
The async proxy for the same protocol.
Source§type Protocol = PeerControllerMarker
type Protocol = PeerControllerMarker
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 PeerControllerSynchronousProxy
impl RefUnwindSafe for PeerControllerSynchronousProxy
impl Send for PeerControllerSynchronousProxy
impl Sync for PeerControllerSynchronousProxy
impl Unpin for PeerControllerSynchronousProxy
impl UnsafeUnpin for PeerControllerSynchronousProxy
impl UnwindSafe for PeerControllerSynchronousProxy
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