Struct crosvm_control::BalloonStatsFfi
source · #[repr(C)]pub struct BalloonStatsFfi {
pub(crate) swap_in: i64,
pub(crate) swap_out: i64,
pub(crate) major_faults: i64,
pub(crate) minor_faults: i64,
pub(crate) free_memory: i64,
pub(crate) total_memory: i64,
pub(crate) available_memory: i64,
pub(crate) disk_caches: i64,
pub(crate) hugetlb_allocations: i64,
pub(crate) hugetlb_failures: i64,
pub(crate) shared_memory: i64,
pub(crate) unevictable_memory: i64,
}
Expand description
Similar to internally used BalloonStats
but using i64
instead of
Option<u64>
. None
(or values bigger than i64::max
) will be encoded as -1.
Fields§
§swap_in: i64
§swap_out: i64
§major_faults: i64
§minor_faults: i64
§free_memory: i64
§total_memory: i64
§available_memory: i64
§disk_caches: i64
§hugetlb_allocations: i64
§hugetlb_failures: i64
§unevictable_memory: i64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BalloonStatsFfi
impl Send for BalloonStatsFfi
impl Sync for BalloonStatsFfi
impl Unpin for BalloonStatsFfi
impl UnwindSafe for BalloonStatsFfi
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.