pub enum Strategy {
OneShot,
Agent {
width: u32,
height: u32,
},
Snapshot {
guest_vsock_port: u32,
},
}Expand description
The guest workload, replacing the cmdline’s vmette.desktop/vmette.display
and vmette.snapshot_mode/vmette.guest_vsock_port tokens.
Variants§
OneShot
Run the exec command and power off.
Agent
Boot the persistent desktop (Xvfb at widthxheight + the computer-use
agent).
Snapshot
Snapshot-build “server” mode — an Apple-Silicon feature (Phase 5;
saveMachineStateToURL: is arm64-gated). The guest execs vsock-runner,
which signals READY and blocks on accept() so the host can save the
VM’s memory state, then runs the command delivered on resume.
guest_vsock_port is the in-guest listen port; the host-side vsock port
rides the kernel cmdline (vmette.vsock_port).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
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
impl Eq for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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