pub struct QrtrConnectorSynchronousProxy { /* private fields */ }Implementations§
Source§impl QrtrConnectorSynchronousProxy
impl QrtrConnectorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<QrtrConnectorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<QrtrConnectorEvent, 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_connection(
&self,
options: &ConnectionOptions,
proxy: ServerEnd<QrtrClientConnectionMarker>,
___deadline: MonotonicInstant,
) -> Result<QrtrConnectorGetConnectionResult, Error>
pub fn get_connection( &self, options: &ConnectionOptions, proxy: ServerEnd<QrtrClientConnectionMarker>, ___deadline: MonotonicInstant, ) -> Result<QrtrConnectorGetConnectionResult, Error>
Gets a new connection from QRTR.
If port is specificed in options, creates a connection with target
port. Otherwise, assigns a random port for the connection.
- Errors:
INTERNAL_ERROR: Unexpected QRTR error.INVALID_ARGS: Invalid arguments inConnectionOptions.NO_RESOURCES: No non-reserved port available.ALREADY_BOUND: Specified port inConnectionOptionsis in use.
Trait Implementations§
Source§impl From<Channel> for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
Source§impl From<QrtrConnectorSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<QrtrConnectorSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: QrtrConnectorSynchronousProxy) -> Self
fn from(value: QrtrConnectorSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
impl FromClient for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = QrtrConnectorMarker
type Protocol = QrtrConnectorMarker
The protocol.
Source§fn from_client(value: ClientEnd<QrtrConnectorMarker>) -> Self
fn from_client(value: ClientEnd<QrtrConnectorMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for QrtrConnectorSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = QrtrConnectorProxy
type Proxy = QrtrConnectorProxy
The async proxy for the same protocol.
Source§type Protocol = QrtrConnectorMarker
type Protocol = QrtrConnectorMarker
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 QrtrConnectorSynchronousProxy
impl RefUnwindSafe for QrtrConnectorSynchronousProxy
impl Send for QrtrConnectorSynchronousProxy
impl Sync for QrtrConnectorSynchronousProxy
impl Unpin for QrtrConnectorSynchronousProxy
impl UnsafeUnpin for QrtrConnectorSynchronousProxy
impl UnwindSafe for QrtrConnectorSynchronousProxy
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