pub struct VmoProxy { /* private fields */ }Implementations§
Source§impl VmoProxy
impl VmoProxy
Sourcepub fn take_event_stream(&self) -> VmoEventStream
pub fn take_event_stream(&self) -> VmoEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn create_vmo(
&self,
size: u64,
options: VmoOptions,
handle: &NewHandleId,
) -> QueryResponseFut<VmoCreateVmoResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn create_vmo( &self, size: u64, options: VmoOptions, handle: &NewHandleId, ) -> QueryResponseFut<VmoCreateVmoResult, DefaultFuchsiaResourceDialect> ⓘ
Create a new VMO in this FDomain.
Sourcepub fn read_vmo(
&self,
handle: &HandleId,
offset: u64,
size: u64,
) -> QueryResponseFut<VmoReadVmoResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn read_vmo( &self, handle: &HandleId, offset: u64, size: u64, ) -> QueryResponseFut<VmoReadVmoResult, DefaultFuchsiaResourceDialect> ⓘ
Read data from a VMO.
Sourcepub fn write_vmo(
&self,
handle: &HandleId,
offset: u64,
data: &[u8],
) -> QueryResponseFut<VmoWriteVmoResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn write_vmo( &self, handle: &HandleId, offset: u64, data: &[u8], ) -> QueryResponseFut<VmoWriteVmoResult, DefaultFuchsiaResourceDialect> ⓘ
Write data to a VMO.
Sourcepub fn get_vmo_size(
&self,
handle: &HandleId,
) -> QueryResponseFut<VmoGetVmoSizeResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_vmo_size( &self, handle: &HandleId, ) -> QueryResponseFut<VmoGetVmoSizeResult, DefaultFuchsiaResourceDialect> ⓘ
Get the size of a VMO in bytes.
Sourcepub fn set_vmo_size(
&self,
handle: &HandleId,
size: u64,
) -> QueryResponseFut<VmoSetVmoSizeResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_vmo_size( &self, handle: &HandleId, size: u64, ) -> QueryResponseFut<VmoSetVmoSizeResult, DefaultFuchsiaResourceDialect> ⓘ
Set the size of a VMO in bytes.
Sourcepub fn get_vmo_stream_size(
&self,
handle: &HandleId,
) -> QueryResponseFut<VmoGetVmoStreamSizeResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_vmo_stream_size( &self, handle: &HandleId, ) -> QueryResponseFut<VmoGetVmoStreamSizeResult, DefaultFuchsiaResourceDialect> ⓘ
Get the stream size of a VMO in bytes.
Sourcepub fn set_vmo_stream_size(
&self,
handle: &HandleId,
size: u64,
) -> QueryResponseFut<VmoSetVmoStreamSizeResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn set_vmo_stream_size( &self, handle: &HandleId, size: u64, ) -> QueryResponseFut<VmoSetVmoStreamSizeResult, DefaultFuchsiaResourceDialect> ⓘ
Set the stream size of a VMO in bytes.
Trait Implementations§
Source§impl Proxy for VmoProxy
impl Proxy for VmoProxy
Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Source§impl VmoProxyInterface for VmoProxy
impl VmoProxyInterface for VmoProxy
type CreateVmoResponseFut = QueryResponseFut<Result<(), Error>>
type ReadVmoResponseFut = QueryResponseFut<Result<Vec<u8>, Error>>
type WriteVmoResponseFut = QueryResponseFut<Result<(), Error>>
type GetVmoSizeResponseFut = QueryResponseFut<Result<u64, Error>>
type SetVmoSizeResponseFut = QueryResponseFut<Result<(), Error>>
type GetVmoStreamSizeResponseFut = QueryResponseFut<Result<u64, Error>>
type SetVmoStreamSizeResponseFut = QueryResponseFut<Result<(), Error>>
fn create_vmo( &self, size: u64, options: VmoOptions, handle: &NewHandleId, ) -> Self::CreateVmoResponseFut
fn read_vmo( &self, handle: &HandleId, offset: u64, size: u64, ) -> Self::ReadVmoResponseFut
fn write_vmo( &self, handle: &HandleId, offset: u64, data: &[u8], ) -> Self::WriteVmoResponseFut
fn get_vmo_size(&self, handle: &HandleId) -> Self::GetVmoSizeResponseFut
fn set_vmo_size( &self, handle: &HandleId, size: u64, ) -> Self::SetVmoSizeResponseFut
fn get_vmo_stream_size( &self, handle: &HandleId, ) -> Self::GetVmoStreamSizeResponseFut
fn set_vmo_stream_size( &self, handle: &HandleId, size: u64, ) -> Self::SetVmoStreamSizeResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for VmoProxy
impl !UnwindSafe for VmoProxy
impl Freeze for VmoProxy
impl Send for VmoProxy
impl Sync for VmoProxy
impl Unpin for VmoProxy
impl UnsafeUnpin for VmoProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.