pub struct MicrovmHooks {
pub run: HookState,
pub run_timeout_in_seconds: u32,
pub resume: HookState,
pub resume_timeout_in_seconds: u32,
pub suspend: HookState,
pub suspend_timeout_in_seconds: u32,
pub terminate: HookState,
pub terminate_timeout_in_seconds: u32,
}Expand description
MicrovmHooks — the family that caps at 60 seconds.
The state members are HookState, so neither value can be misspelled at a call site; the
timeouts are built from crate::hooks::RunHookTimeout before they get here, which is where
the ceiling is enforced.
Fields§
§run: HookState§run_timeout_in_seconds: u32§resume: HookState§resume_timeout_in_seconds: u32§suspend: HookState§suspend_timeout_in_seconds: u32§terminate: HookState§terminate_timeout_in_seconds: u32Trait Implementations§
Source§impl Clone for MicrovmHooks
impl Clone for MicrovmHooks
impl Copy for MicrovmHooks
Source§impl Debug for MicrovmHooks
impl Debug for MicrovmHooks
Source§impl<'de> Deserialize<'de> for MicrovmHooks
impl<'de> Deserialize<'de> for MicrovmHooks
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
Auto Trait Implementations§
impl Freeze for MicrovmHooks
impl RefUnwindSafe for MicrovmHooks
impl Send for MicrovmHooks
impl Sync for MicrovmHooks
impl Unpin for MicrovmHooks
impl UnsafeUnpin for MicrovmHooks
impl UnwindSafe for MicrovmHooks
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