pub struct QrtrTransportChannelSynchronousProxy { /* private fields */ }Implementations§
Source§impl QrtrTransportChannelSynchronousProxy
impl QrtrTransportChannelSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<QrtrTransportChannelEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<QrtrTransportChannelEvent, 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 read(
&self,
___deadline: MonotonicInstant,
) -> Result<QrtrTransportChannelReadResult, Error>
pub fn read( &self, ___deadline: MonotonicInstant, ) -> Result<QrtrTransportChannelReadResult, Error>
Reads a QRTR frame from a transport driver.
Blocks until an inbound frame is ready to be consumed. Only one read request can be performed at a time.
data: QRTR frame.
- Errors:
ALREADY_PENDING: More than one read operation is pending.INTERNAL_ERROR: Unexpected QRTR error.
Sourcepub fn write(
&self,
data: &[u8],
___deadline: MonotonicInstant,
) -> Result<QrtrTransportChannelWriteResult, Error>
pub fn write( &self, data: &[u8], ___deadline: MonotonicInstant, ) -> Result<QrtrTransportChannelWriteResult, Error>
Writes a QRTR frame to a transport driver.
Only one write request can be performed at a time.
- Errors:
ALREADY_PENDING: More than one write operation is pending.INTERNAL_ERROR: Unexpected QRTR error.
Trait Implementations§
Source§impl From<Channel> for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
Source§impl From<QrtrTransportChannelSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<QrtrTransportChannelSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: QrtrTransportChannelSynchronousProxy) -> Self
fn from(value: QrtrTransportChannelSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
impl FromClient for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = QrtrTransportChannelMarker
type Protocol = QrtrTransportChannelMarker
The protocol.
Source§fn from_client(value: ClientEnd<QrtrTransportChannelMarker>) -> Self
fn from_client(value: ClientEnd<QrtrTransportChannelMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for QrtrTransportChannelSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = QrtrTransportChannelProxy
type Proxy = QrtrTransportChannelProxy
The async proxy for the same protocol.
Source§type Protocol = QrtrTransportChannelMarker
type Protocol = QrtrTransportChannelMarker
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 QrtrTransportChannelSynchronousProxy
impl RefUnwindSafe for QrtrTransportChannelSynchronousProxy
impl Send for QrtrTransportChannelSynchronousProxy
impl Sync for QrtrTransportChannelSynchronousProxy
impl Unpin for QrtrTransportChannelSynchronousProxy
impl UnsafeUnpin for QrtrTransportChannelSynchronousProxy
impl UnwindSafe for QrtrTransportChannelSynchronousProxy
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