pub struct MemControllerProxy { /* private fields */ }Implementations§
Source§impl MemControllerProxy
impl MemControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/MemController.
Sourcepub fn take_event_stream(&self) -> MemControllerEventStream
pub fn take_event_stream(&self) -> MemControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_mem_size(
&self,
) -> QueryResponseFut<(u64, u64, u64, u64, u64), DefaultFuchsiaResourceDialect> ⓘ
pub fn get_mem_size( &self, ) -> QueryResponseFut<(u64, u64, u64, u64, u64), DefaultFuchsiaResourceDialect> ⓘ
Get the configured region size, usable region size, plugged size and requestd size
block_size is the size and the alignment in bytes of a memory block. Cannot change. region_size is the size of device-managed memory region in bytes. Cannot change. usable_region_size is the size of the usable device-managed memory region. Can grow up to the region_size. Can only shrink due to VIRTIO_MEM_REQ_UNPLUG_ALL requests. plugged_size is the amount of plugged memory in bytes within the usable device-managed memory region. requested_size is the requested amount of plugged memory within the usable device-managed memory region.
Trait Implementations§
Source§impl Clone for MemControllerProxy
impl Clone for MemControllerProxy
Source§impl Debug for MemControllerProxy
impl Debug for MemControllerProxy
Source§impl MemControllerProxyInterface for MemControllerProxy
impl MemControllerProxyInterface for MemControllerProxy
type GetMemSizeResponseFut = QueryResponseFut<(u64, u64, u64, u64, u64)>
fn get_mem_size(&self) -> Self::GetMemSizeResponseFut
fn request_size(&self, requested_size: u64) -> Result<(), Error>
Source§impl Proxy for MemControllerProxy
impl Proxy for MemControllerProxy
Source§type Protocol = MemControllerMarker
type Protocol = MemControllerMarker
Proxy controls.