#[non_exhaustive]pub struct BalloonConfig {
pub amount_mib: u64,
pub deflate_on_oom: bool,
pub stats_polling_interval_s: u8,
pub free_page_hinting: bool,
pub free_page_reporting: bool,
}Expand description
Validated /balloon PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.amount_mib: u64Target ballooned amount (MiB).
deflate_on_oom: boolWhether the guest balloon driver should deflate on OOM.
stats_polling_interval_s: u8Stats polling interval, seconds (0 disables).
free_page_hinting: boolEnable free-page hinting.
free_page_reporting: boolEnable free-page reporting.
Trait Implementations§
Source§impl Clone for BalloonConfig
impl Clone for BalloonConfig
Source§fn clone(&self) -> BalloonConfig
fn clone(&self) -> BalloonConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BalloonConfig
impl Debug for BalloonConfig
Source§impl Serialize for BalloonConfig
impl Serialize for BalloonConfig
Source§impl TryFrom<RawBalloonConfig> for BalloonConfig
impl TryFrom<RawBalloonConfig> for BalloonConfig
Auto Trait Implementations§
impl Freeze for BalloonConfig
impl RefUnwindSafe for BalloonConfig
impl Send for BalloonConfig
impl Sync for BalloonConfig
impl Unpin for BalloonConfig
impl UnsafeUnpin for BalloonConfig
impl UnwindSafe for BalloonConfig
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