pub struct CentralControllerSynchronousProxy { /* private fields */ }Implementations§
Source§impl CentralControllerSynchronousProxy
impl CentralControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CentralControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CentralControllerEvent, 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 start_scan(
&self,
payload: CentralControllerStartScanRequest,
___deadline: MonotonicInstant,
) -> Result<CentralControllerStartScanResult, Error>
pub fn start_scan( &self, payload: CentralControllerStartScanRequest, ___deadline: MonotonicInstant, ) -> Result<CentralControllerStartScanResult, Error>
Start an LE scan. Results will be streamed to the provided listener. Returns immediately once the scan is initiated.
- error Returns
MISSING_PARAMETERSif the listener is missing. - error Returns
INTERNALif the operation failed (check logs).
Sourcepub fn connect_peripheral(
&self,
payload: &PeerSelector,
___deadline: MonotonicInstant,
) -> Result<CentralControllerConnectPeripheralResult, Error>
pub fn connect_peripheral( &self, payload: &PeerSelector, ___deadline: MonotonicInstant, ) -> Result<CentralControllerConnectPeripheralResult, Error>
Connect to an LE peer.
- error Returns
INTERNALif the operation failed (check logs).
Trait Implementations§
Source§impl From<CentralControllerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<CentralControllerSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: CentralControllerSynchronousProxy) -> Self
fn from(value: CentralControllerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl From<Channel> for CentralControllerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for CentralControllerSynchronousProxy
Available on Fuchsia only.
Source§impl FromClient for CentralControllerSynchronousProxy
Available on Fuchsia only.
impl FromClient for CentralControllerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = CentralControllerMarker
type Protocol = CentralControllerMarker
The protocol.
Source§fn from_client(value: ClientEnd<CentralControllerMarker>) -> Self
fn from_client(value: ClientEnd<CentralControllerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for CentralControllerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for CentralControllerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = CentralControllerProxy
type Proxy = CentralControllerProxy
The async proxy for the same protocol.
Source§type Protocol = CentralControllerMarker
type Protocol = CentralControllerMarker
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 CentralControllerSynchronousProxy
impl RefUnwindSafe for CentralControllerSynchronousProxy
impl Send for CentralControllerSynchronousProxy
impl Sync for CentralControllerSynchronousProxy
impl Unpin for CentralControllerSynchronousProxy
impl UnsafeUnpin for CentralControllerSynchronousProxy
impl UnwindSafe for CentralControllerSynchronousProxy
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