pub struct BalloonConfig {
pub size: i64,
pub deflate_on_oom: Option<bool>,
pub free_page_reporting: Option<bool>,
}Fields§
§size: i64§deflate_on_oom: Option<bool>Deflate balloon when the guest is under memory pressure.
free_page_reporting: Option<bool>Enable guest to report free pages.
Implementations§
Source§impl BalloonConfig
impl BalloonConfig
pub fn new(size: i64) -> BalloonConfig
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 · 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 Default for BalloonConfig
impl Default for BalloonConfig
Source§fn default() -> BalloonConfig
fn default() -> BalloonConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BalloonConfig
impl<'de> Deserialize<'de> for BalloonConfig
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 PartialEq for BalloonConfig
impl PartialEq for BalloonConfig
Source§impl Serialize for BalloonConfig
impl Serialize for BalloonConfig
impl StructuralPartialEq 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