pub struct ControllerSnapshot {
pub instance_info: InstanceInfo,
pub firecracker_version: String,
pub vm_config: Arc<Value>,
pub phase: LifecyclePhase,
}Expand description
Lock-free read mirror surfaced via every GET handler.
Fields§
§instance_info: InstanceInfoBody of GET / (already collapsed to the upstream three-value vocabulary).
firecracker_version: Stringfirecracker_version returned by GET /version.
vm_config: Arc<Value>Materialised VmmConfig for GET /vm/config — opaque JSON tree at this layer
(the VMM populates it from validated typed configs).
phase: LifecyclePhaseInternal lifecycle phase. Never serialized to the wire.
Implementations§
Trait Implementations§
Source§impl Clone for ControllerSnapshot
impl Clone for ControllerSnapshot
Source§fn clone(&self) -> ControllerSnapshot
fn clone(&self) -> ControllerSnapshot
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 ControllerSnapshot
impl RefUnwindSafe for ControllerSnapshot
impl Send for ControllerSnapshot
impl Sync for ControllerSnapshot
impl Unpin for ControllerSnapshot
impl UnsafeUnpin for ControllerSnapshot
impl UnwindSafe for ControllerSnapshot
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