pub enum ActionClass {
PreBootConfig,
InstanceStart,
SnapshotCreate,
SnapshotLoad,
VmStateChange,
BalloonResize,
Other,
}Expand description
Per-action class used to look up the tokio::time::timeout budget for an action
(70-security.md § 6).
Variants§
PreBootConfig
Pre-boot configuration mutation (PUT/PATCH/DELETE on /drives,
/network-interfaces, /machine-config, etc.). Default 5 s.
InstanceStart
Action(InstanceStart). Default 30 s — boot orchestration including FDT build,
kernel load, GIC create.
SnapshotCreate
PUT /snapshot/create. Default 5 min — bounded by memory-file write throughput.
SnapshotLoad
PUT /snapshot/load. Default 5 min — symmetric to SnapshotCreate.
VmStateChange
PATCH /vm (Pause/Resume). Default 5 s — quiesce wait.
BalloonResize
PATCH /balloon resize. Default 30 s — large balloons take time as the guest
releases pages.
Other
Other in-flight actions (e.g. FlushMetrics). Default 5 s.
Implementations§
Trait Implementations§
Source§impl Clone for ActionClass
impl Clone for ActionClass
Source§fn clone(&self) -> ActionClass
fn clone(&self) -> ActionClass
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 ActionClass
impl Debug for ActionClass
Source§impl PartialEq for ActionClass
impl PartialEq for ActionClass
Source§fn eq(&self, other: &ActionClass) -> bool
fn eq(&self, other: &ActionClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActionClass
impl Eq for ActionClass
impl StructuralPartialEq for ActionClass
Auto Trait Implementations§
impl Freeze for ActionClass
impl RefUnwindSafe for ActionClass
impl Send for ActionClass
impl Sync for ActionClass
impl Unpin for ActionClass
impl UnsafeUnpin for ActionClass
impl UnwindSafe for ActionClass
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