pub struct KernelSnapshot {
pub snapshot_version: u32,
pub abi_version: u32,
pub initial_policy: KernelSnapshotPolicy,
pub lifecycle: KernelLifecycle,
pub operation_id: Option<String>,
pub next_step_seq: u64,
pub snapshot_input_limit: usize,
pub max_input_bytes: usize,
pub snapshot_journal_bytes_limit: usize,
pub accepted_input_bytes: usize,
pub accepted_inputs: Vec<KernelInput>,
pub last_step: Option<KernelStep>,
}Expand description
Portable runtime checkpoint. State is rebuilt from accepted public ABI transactions rather than serializing private scheduler structs, so internal refactors do not change this schema.
Fields§
§snapshot_version: u32§abi_version: u32§initial_policy: KernelSnapshotPolicy§lifecycle: KernelLifecycle§operation_id: Option<String>§next_step_seq: u64§snapshot_input_limit: usize§max_input_bytes: usize§snapshot_journal_bytes_limit: usize§accepted_input_bytes: usize§accepted_inputs: Vec<KernelInput>§last_step: Option<KernelStep>Trait Implementations§
Source§impl Clone for KernelSnapshot
impl Clone for KernelSnapshot
Source§fn clone(&self) -> KernelSnapshot
fn clone(&self) -> KernelSnapshot
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 KernelSnapshot
impl Debug for KernelSnapshot
Source§impl<'de> Deserialize<'de> for KernelSnapshot
impl<'de> Deserialize<'de> for KernelSnapshot
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
Auto Trait Implementations§
impl Freeze for KernelSnapshot
impl RefUnwindSafe for KernelSnapshot
impl Send for KernelSnapshot
impl Sync for KernelSnapshot
impl Unpin for KernelSnapshot
impl UnsafeUnpin for KernelSnapshot
impl UnwindSafe for KernelSnapshot
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