pub struct RawBalloonConfig {
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
Raw /balloon PUT body off the wire.
Fields§
§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 RawBalloonConfig
impl Clone for RawBalloonConfig
Source§fn clone(&self) -> RawBalloonConfig
fn clone(&self) -> RawBalloonConfig
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 RawBalloonConfig
impl Debug for RawBalloonConfig
Source§impl<'de> Deserialize<'de> for RawBalloonConfig
impl<'de> Deserialize<'de> for RawBalloonConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 TryFrom<RawBalloonConfig> for BalloonConfig
impl TryFrom<RawBalloonConfig> for BalloonConfig
Auto Trait Implementations§
impl Freeze for RawBalloonConfig
impl RefUnwindSafe for RawBalloonConfig
impl Send for RawBalloonConfig
impl Sync for RawBalloonConfig
impl Unpin for RawBalloonConfig
impl UnsafeUnpin for RawBalloonConfig
impl UnwindSafe for RawBalloonConfig
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