pub enum SnapshotDataKind {
WasmModule {
offset: u64,
size: u64,
},
WasmMemory {
offset: u64,
size: u64,
},
StableMemory {
offset: u64,
size: u64,
},
WasmChunk {
hash: Vec<u8>,
},
}Expand description
§Snapshot data kind.
Variants§
Trait Implementations§
Source§impl CandidType for SnapshotDataKind
impl CandidType for SnapshotDataKind
Source§impl Clone for SnapshotDataKind
impl Clone for SnapshotDataKind
Source§fn clone(&self) -> SnapshotDataKind
fn clone(&self) -> SnapshotDataKind
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 Debug for SnapshotDataKind
impl Debug for SnapshotDataKind
Source§impl<'de> Deserialize<'de> for SnapshotDataKind
impl<'de> Deserialize<'de> for SnapshotDataKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotDataKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotDataKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SnapshotDataKind
impl Serialize for SnapshotDataKind
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 SnapshotDataKind
impl RefUnwindSafe for SnapshotDataKind
impl Send for SnapshotDataKind
impl Sync for SnapshotDataKind
impl Unpin for SnapshotDataKind
impl UnwindSafe for SnapshotDataKind
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)