pub struct VirtioBalloonProxy { /* private fields */ }
Implementations§
source§impl VirtioBalloonProxy
impl VirtioBalloonProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization.hardware/VirtioBalloon.
sourcepub fn take_event_stream(&self) -> VirtioBalloonEventStream
pub fn take_event_stream(&self) -> VirtioBalloonEventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn configure_queue(
&self,
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64
) -> QueryResponseFut<()>
pub fn configure_queue( &self, queue: u16, size: u16, desc: u64, avail: u64, used: u64 ) -> QueryResponseFut<()>
Configure a queue
for the device. This specifies the size
and the
guest physical addresses of the queue: desc
, avail
, and used
.
sourcepub fn notify_queue(&self, queue: u16) -> Result<(), Error>
pub fn notify_queue(&self, queue: u16) -> Result<(), Error>
Notify a queue
for the device. Primarily used for black-box testing.
sourcepub fn ready(&self, negotiated_features: u32) -> QueryResponseFut<()>
pub fn ready(&self, negotiated_features: u32) -> QueryResponseFut<()>
Ready a device. This provides the set of negotiated_features
that the
driver and device have agreed upon.
sourcepub fn get_mem_stats(&self) -> QueryResponseFut<(i32, Option<Vec<MemStat>>)>
pub fn get_mem_stats(&self) -> QueryResponseFut<(i32, Option<Vec<MemStat>>)>
Get memory statistics from the balloon device.
Trait Implementations§
source§impl Clone for VirtioBalloonProxy
impl Clone for VirtioBalloonProxy
source§fn clone(&self) -> VirtioBalloonProxy
fn clone(&self) -> VirtioBalloonProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VirtioBalloonProxy
impl Debug for VirtioBalloonProxy
source§impl Proxy for VirtioBalloonProxy
impl Proxy for VirtioBalloonProxy
§type Protocol = VirtioBalloonMarker
type Protocol = VirtioBalloonMarker
The protocol which this
Proxy
controls.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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
source§impl VirtioBalloonProxyInterface for VirtioBalloonProxy
impl VirtioBalloonProxyInterface for VirtioBalloonProxy
type ConfigureQueueResponseFut = QueryResponseFut<()>
fn configure_queue( &self, queue: u16, size: u16, desc: u64, avail: u64, used: u64 ) -> Self::ConfigureQueueResponseFut
fn notify_queue(&self, queue: u16) -> Result<(), Error>
type ReadyResponseFut = QueryResponseFut<()>
fn ready(&self, negotiated_features: u32) -> Self::ReadyResponseFut
type StartResponseFut = QueryResponseFut<()>
fn start(&self, start_info: StartInfo) -> Self::StartResponseFut
type GetMemStatsResponseFut = QueryResponseFut<(i32, Option<Vec<MemStat>>)>
fn get_mem_stats(&self) -> Self::GetMemStatsResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for VirtioBalloonProxy
impl Send for VirtioBalloonProxy
impl Sync for VirtioBalloonProxy
impl Unpin for VirtioBalloonProxy
impl !UnwindSafe for VirtioBalloonProxy
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