pub struct SnapshotMetadata {
pub source: SnapshotSource,
pub taken_at_timestamp: u64,
pub wasm_module_size: u64,
pub exported_globals: Vec<ExportedGlobal>,
pub wasm_memory_size: u64,
pub stable_memory_size: u64,
pub wasm_chunk_store: StoreChunksResult,
pub canister_version: u64,
pub certified_data: Vec<u8>,
pub global_timer: Option<CanisterTimer>,
pub on_low_wasm_memory_hook_status: Option<OnLowWasmMemoryHookStatus>,
}Expand description
Return type of ManagementCanister::read_canister_snapshot_metadata.
Fields§
§source: SnapshotSourceThe source of the snapshot.
taken_at_timestamp: u64The Unix nanosecond timestamp the snapshot was taken at.
wasm_module_size: u64The size of the Wasm module.
exported_globals: Vec<ExportedGlobal>The exported globals.
wasm_memory_size: u64The size of the Wasm memory.
stable_memory_size: u64The size of the stable memory.
wasm_chunk_store: StoreChunksResultThe chunk store of the Wasm module.
canister_version: u64The version of the canister.
certified_data: Vec<u8>The certified data.
global_timer: Option<CanisterTimer>The status of the global timer.
on_low_wasm_memory_hook_status: Option<OnLowWasmMemoryHookStatus>The status of the low wasm memory hook.
Trait Implementations§
Source§impl CandidType for SnapshotMetadata
impl CandidType for SnapshotMetadata
Source§impl Clone for SnapshotMetadata
impl Clone for SnapshotMetadata
Source§fn clone(&self) -> SnapshotMetadata
fn clone(&self) -> SnapshotMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotMetadata
impl Debug for SnapshotMetadata
Source§impl<'de> Deserialize<'de> for SnapshotMetadata
impl<'de> Deserialize<'de> for SnapshotMetadata
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 SnapshotMetadata
impl RefUnwindSafe for SnapshotMetadata
impl Send for SnapshotMetadata
impl Sync for SnapshotMetadata
impl Unpin for SnapshotMetadata
impl UnwindSafe for SnapshotMetadata
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