pub struct SharedVmoIoSynchronousProxy { /* private fields */ }Implementations§
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SharedVmoIoEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SharedVmoIoEvent, 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 transmit(
&self,
buffer: &SharedVmoBuffer,
___deadline: MonotonicInstant,
) -> Result<SharedVmoIoTransmitResult, Error>
pub fn transmit( &self, buffer: &SharedVmoBuffer, ___deadline: MonotonicInstant, ) -> Result<SharedVmoIoTransmitResult, Error>
Sends the data in buffer to the device.
Sourcepub fn receive(
&self,
buffer: &SharedVmoBuffer,
___deadline: MonotonicInstant,
) -> Result<SharedVmoIoReceiveResult, Error>
pub fn receive( &self, buffer: &SharedVmoBuffer, ___deadline: MonotonicInstant, ) -> Result<SharedVmoIoReceiveResult, Error>
Receives data from the device into buffer.
Sourcepub fn exchange(
&self,
tx_buffer: &SharedVmoBuffer,
rx_buffer: &SharedVmoBuffer,
___deadline: MonotonicInstant,
) -> Result<SharedVmoIoExchangeResult, Error>
pub fn exchange( &self, tx_buffer: &SharedVmoBuffer, rx_buffer: &SharedVmoBuffer, ___deadline: MonotonicInstant, ) -> Result<SharedVmoIoExchangeResult, Error>
Simultaneously transmits and receives data. The size fields of tx_buffer and rx_buffer must be the same.
Trait Implementations§
Source§fn from(value: SharedVmoIoSynchronousProxy) -> Self
fn from(value: SharedVmoIoSynchronousProxy) -> Self
Converts to this type from the input type.
Source§type Protocol = SharedVmoIoMarker
type Protocol = SharedVmoIoMarker
The protocol.
Source§fn from_client(value: ClientEnd<SharedVmoIoMarker>) -> Self
fn from_client(value: ClientEnd<SharedVmoIoMarker>) -> Self
Converts from a client.
Source§type Proxy = SharedVmoIoProxy
type Proxy = SharedVmoIoProxy
The async proxy for the same protocol.
Source§type Protocol = SharedVmoIoMarker
type Protocol = SharedVmoIoMarker
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§
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