pub struct VmoSynchronousProxy { /* private fields */ }Implementations§
Source§impl VmoSynchronousProxy
impl VmoSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<VmoEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<VmoEvent, 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 create_vmo(
&self,
size: u64,
options: VmoOptions,
handle: &NewHandleId,
___deadline: MonotonicInstant,
) -> Result<VmoCreateVmoResult, Error>
pub fn create_vmo( &self, size: u64, options: VmoOptions, handle: &NewHandleId, ___deadline: MonotonicInstant, ) -> Result<VmoCreateVmoResult, Error>
Create a new VMO in this FDomain.
Sourcepub fn read_vmo(
&self,
handle: &HandleId,
offset: u64,
size: u64,
___deadline: MonotonicInstant,
) -> Result<VmoReadVmoResult, Error>
pub fn read_vmo( &self, handle: &HandleId, offset: u64, size: u64, ___deadline: MonotonicInstant, ) -> Result<VmoReadVmoResult, Error>
Read data from a VMO.
Sourcepub fn write_vmo(
&self,
handle: &HandleId,
offset: u64,
data: &[u8],
___deadline: MonotonicInstant,
) -> Result<VmoWriteVmoResult, Error>
pub fn write_vmo( &self, handle: &HandleId, offset: u64, data: &[u8], ___deadline: MonotonicInstant, ) -> Result<VmoWriteVmoResult, Error>
Write data to a VMO.
Sourcepub fn get_vmo_size(
&self,
handle: &HandleId,
___deadline: MonotonicInstant,
) -> Result<VmoGetVmoSizeResult, Error>
pub fn get_vmo_size( &self, handle: &HandleId, ___deadline: MonotonicInstant, ) -> Result<VmoGetVmoSizeResult, Error>
Get the size of a VMO in bytes.
Sourcepub fn set_vmo_size(
&self,
handle: &HandleId,
size: u64,
___deadline: MonotonicInstant,
) -> Result<VmoSetVmoSizeResult, Error>
pub fn set_vmo_size( &self, handle: &HandleId, size: u64, ___deadline: MonotonicInstant, ) -> Result<VmoSetVmoSizeResult, Error>
Set the size of a VMO in bytes.
Sourcepub fn get_vmo_stream_size(
&self,
handle: &HandleId,
___deadline: MonotonicInstant,
) -> Result<VmoGetVmoStreamSizeResult, Error>
pub fn get_vmo_stream_size( &self, handle: &HandleId, ___deadline: MonotonicInstant, ) -> Result<VmoGetVmoStreamSizeResult, Error>
Get the stream size of a VMO in bytes.
Sourcepub fn set_vmo_stream_size(
&self,
handle: &HandleId,
size: u64,
___deadline: MonotonicInstant,
) -> Result<VmoSetVmoStreamSizeResult, Error>
pub fn set_vmo_stream_size( &self, handle: &HandleId, size: u64, ___deadline: MonotonicInstant, ) -> Result<VmoSetVmoStreamSizeResult, Error>
Set the stream size of a VMO in bytes.
Trait Implementations§
Source§impl Debug for VmoSynchronousProxy
impl Debug for VmoSynchronousProxy
Source§impl From<Channel> for VmoSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for VmoSynchronousProxy
Available on Fuchsia only.
Source§impl From<VmoSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<VmoSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: VmoSynchronousProxy) -> Self
fn from(value: VmoSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for VmoSynchronousProxy
Available on Fuchsia only.
impl FromClient for VmoSynchronousProxy
Available on Fuchsia only.
Source§impl SynchronousProxy for VmoSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for VmoSynchronousProxy
Available on Fuchsia only.
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 VmoSynchronousProxy
impl RefUnwindSafe for VmoSynchronousProxy
impl Send for VmoSynchronousProxy
impl Sync for VmoSynchronousProxy
impl Unpin for VmoSynchronousProxy
impl UnsafeUnpin for VmoSynchronousProxy
impl UnwindSafe for VmoSynchronousProxy
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