pub struct ReadCanisterSnapshotMetadataResult {
pub source: Option<SnapshotSource>,
pub taken_at_timestamp: u64,
pub wasm_module_size: u64,
pub globals: Vec<Option<SnapshotMetadataGlobal>>,
pub wasm_memory_size: u64,
pub stable_memory_size: u64,
pub wasm_chunk_store: Vec<ChunkHash>,
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
§Read Canister Snapshot Metadata Result.
Fields§
§source: Option<SnapshotSource>The 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.
globals: Vec<Option<SnapshotMetadataGlobal>>The globals.
wasm_memory_size: u64The size of the Wasm memory.
stable_memory_size: u64The size of the stable memory.
wasm_chunk_store: Vec<ChunkHash>The 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 Clone for ReadCanisterSnapshotMetadataResult
impl Clone for ReadCanisterSnapshotMetadataResult
Source§fn clone(&self) -> ReadCanisterSnapshotMetadataResult
fn clone(&self) -> ReadCanisterSnapshotMetadataResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ReadCanisterSnapshotMetadataResult
impl<'de> Deserialize<'de> for ReadCanisterSnapshotMetadataResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReadCanisterSnapshotMetadataResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReadCanisterSnapshotMetadataResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ReadCanisterSnapshotMetadataResult
impl Serialize for ReadCanisterSnapshotMetadataResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ReadCanisterSnapshotMetadataResult
impl RefUnwindSafe for ReadCanisterSnapshotMetadataResult
impl Send for ReadCanisterSnapshotMetadataResult
impl Sync for ReadCanisterSnapshotMetadataResult
impl Unpin for ReadCanisterSnapshotMetadataResult
impl UnwindSafe for ReadCanisterSnapshotMetadataResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)