pub enum WorkloadStrategy {
OneShot,
Agent,
}Expand description
Selects what the guest does once booted, and therefore which terminal
event ends the Session.
OneShot: the guest runs thevmette.execcommand and powers off, writing its code to.vmette-exit. The session ends on the lifecycle-delegate poweroff. This is the headless default and the only path the CLI/FFI use.Agent: the guest starts a desktop (Xvfb + WM +vmette-desktop-agent) and serves the framedcrate::desktopprotocol over vsock. The session stays alive until an explicitSession::stop.
Variants§
Trait Implementations§
Source§impl Clone for WorkloadStrategy
impl Clone for WorkloadStrategy
Source§fn clone(&self) -> WorkloadStrategy
fn clone(&self) -> WorkloadStrategy
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 WorkloadStrategy
impl Debug for WorkloadStrategy
Source§impl Default for WorkloadStrategy
impl Default for WorkloadStrategy
Source§fn default() -> WorkloadStrategy
fn default() -> WorkloadStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkloadStrategy
impl PartialEq for WorkloadStrategy
Source§fn eq(&self, other: &WorkloadStrategy) -> bool
fn eq(&self, other: &WorkloadStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WorkloadStrategy
impl Eq for WorkloadStrategy
impl StructuralPartialEq for WorkloadStrategy
Auto Trait Implementations§
impl Freeze for WorkloadStrategy
impl RefUnwindSafe for WorkloadStrategy
impl Send for WorkloadStrategy
impl Sync for WorkloadStrategy
impl Unpin for WorkloadStrategy
impl UnsafeUnpin for WorkloadStrategy
impl UnwindSafe for WorkloadStrategy
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