pub struct SharedVmoRegisterSynchronousProxy { /* private fields */ }Implementations§
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SharedVmoRegisterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SharedVmoRegisterEvent, 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 register_vmo(
&self,
vmo_id: u32,
vmo: Range,
rights: SharedVmoRight,
___deadline: MonotonicInstant,
) -> Result<SharedVmoRegisterRegisterVmoResult, Error>
pub fn register_vmo( &self, vmo_id: u32, vmo: Range, rights: SharedVmoRight, ___deadline: MonotonicInstant, ) -> Result<SharedVmoRegisterRegisterVmoResult, Error>
Registers a VMO and transfers ownership to the driver. vmo_id: The ID chosen by the client that will be used in operations on this VMO. vmo: The handle, offset, and size of this VMO. IO operations on this VMO will be relative to the offset and size specified here. rights: A bit field of SharedVmoRight values indicating how this VMO may be used. Callers should assume that the driver will map and/or pin the VMO using these rights.
Sourcepub fn unregister_vmo(
&self,
vmo_id: u32,
___deadline: MonotonicInstant,
) -> Result<SharedVmoRegisterUnregisterVmoResult, Error>
pub fn unregister_vmo( &self, vmo_id: u32, ___deadline: MonotonicInstant, ) -> Result<SharedVmoRegisterUnregisterVmoResult, Error>
Unmaps and/or unpins the VMO and returns the handle to the caller.
Trait Implementations§
Source§fn from(value: SharedVmoRegisterSynchronousProxy) -> Self
fn from(value: SharedVmoRegisterSynchronousProxy) -> Self
Converts to this type from the input type.
Source§type Protocol = SharedVmoRegisterMarker
type Protocol = SharedVmoRegisterMarker
The protocol.
Source§fn from_client(value: ClientEnd<SharedVmoRegisterMarker>) -> Self
fn from_client(value: ClientEnd<SharedVmoRegisterMarker>) -> Self
Converts from a client.
Source§type Proxy = SharedVmoRegisterProxy
type Proxy = SharedVmoRegisterProxy
The async proxy for the same protocol.
Source§type Protocol = SharedVmoRegisterMarker
type Protocol = SharedVmoRegisterMarker
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