pub enum ControlOperation {
GenerationOne(ControlRequest),
CheckpointCreate(CheckpointCreate),
DiskCheckpointCreate(DiskCheckpointCreate),
BranchCreate(BranchCreate),
Pause(Pause),
Resume,
PauseState,
RootDiskGrow(RootDiskGrow),
DiskCompact(DiskCompact),
}Expand description
One decoded application operation across all negotiated control generations.
Generation-one’s public ControlRequest remains unchanged so downstream exhaustive matches
keep compiling. Generation-two operations live in this additive dispatch type instead.
Variants§
GenerationOne(ControlRequest)
A released generation-one operation.
CheckpointCreate(CheckpointCreate)
Create one full checkpoint.
DiskCheckpointCreate(DiskCheckpointCreate)
Create one disk-only checkpoint.
BranchCreate(BranchCreate)
Create one direct local branch without descriptor transfer.
Pause(Pause)
Pause, optionally with an explicit guest-writeback policy.
Resume
Resume a resident pause.
PauseState
Inspect resident pause state.
RootDiskGrow(RootDiskGrow)
Grow the root disk and filesystem.
DiskCompact(DiskCompact)
Compact selected owned disk chains.
Implementations§
Source§impl ControlOperation
impl ControlOperation
Sourcepub fn from_envelope(
envelope: &Envelope,
generation: u8,
) -> Result<ControlOperation, WireError>
pub fn from_envelope( envelope: &Envelope, generation: u8, ) -> Result<ControlOperation, WireError>
Decode one request admitted by the negotiated generation.
Trait Implementations§
Source§impl Clone for ControlOperation
impl Clone for ControlOperation
Source§fn clone(&self) -> ControlOperation
fn clone(&self) -> ControlOperation
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 moreAuto Trait Implementations§
impl Freeze for ControlOperation
impl RefUnwindSafe for ControlOperation
impl Send for ControlOperation
impl Sync for ControlOperation
impl Unpin for ControlOperation
impl UnsafeUnpin for ControlOperation
impl UnwindSafe for ControlOperation
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