pub struct BalloonStatistics {
Show 14 fields pub target_pages: u64, pub actual_pages: u64, pub target_mib: u64, pub actual_mib: u64, pub swap_in: Option<u64>, pub swap_out: Option<u64>, pub major_faults: Option<u64>, pub minor_faults: Option<u64>, pub free_memory: Option<u64>, pub total_memory: Option<u64>, pub available_memory: Option<u64>, pub disk_caches: Option<u64>, pub hugetlb_allocations: Option<u64>, pub hugetlb_failures: Option<u64>,
}
Expand description

Describes the balloon device statistics.

This structure represents the return value requested by GET /balloon/statistics, which describes detailed information of the balloon device.

Fields§

§target_pages: u64

Target number of pages the device aims to hold. Required: true

§actual_pages: u64

Actual number of pages the device is holding. Required: true

§target_mib: u64

Target amount of memory (in MiB) the device aims to hold. Required: true

§actual_mib: u64

Actual amount of memory (in MiB) the device is holding. Required: true

§swap_in: Option<u64>

The amount of memory that has been swapped in (in bytes).

§swap_out: Option<u64>

The amount of memory that has been swapped out to disk (in bytes).

§major_faults: Option<u64>

The number of major page faults that have occurred.

§minor_faults: Option<u64>

The number of minor page faults that have occurred.

§free_memory: Option<u64>

The amount of memory not being used for any purpose (in bytes).

§total_memory: Option<u64>

The total amount of memory available (in bytes).

§available_memory: Option<u64>

An estimate of how much memory is available (in bytes) for starting new applications without pushing the system to swap;

§disk_caches: Option<u64>

The amount of memory, in bytes, that can be quickly reclaimed without additional I/O. Typically these pages are used for caching files from disk.

§hugetlb_allocations: Option<u64>

The number of successful hugetlb page allocations in the guest.

§hugetlb_failures: Option<u64>

The number of failed hugetlb page allocations in the guest.

Trait Implementations§

source§

impl Clone for BalloonStatistics

source§

fn clone(&self) -> BalloonStatistics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BalloonStatistics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BalloonStatistics

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'a> Json<'a> for BalloonStatistics

§

type Item = BalloonStatistics

source§

fn to_json(&self) -> Result<String>
where Self: Serialize,

source§

fn into_json(self) -> Result<String>
where Self: Serialize + Sized,

source§

impl Serialize for BalloonStatistics

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,