pub struct WasmChecksum(/* private fields */);Expand description
The checksum of a Wasm binary.
Allows for features requiring the exact same Wasm Module (e.g. deterministic replay) to verify that the binary used matches the one originally compiled.
Implementations§
Source§impl WasmChecksum
impl WasmChecksum
Sourcepub fn from_binary(bin: &[u8], recording: bool) -> WasmChecksum
pub fn from_binary(bin: &[u8], recording: bool) -> WasmChecksum
Construct a WasmChecksum from the given wasm binary, used primarily for integrity
checks on compiled modules when recording configs are enabled. The checksum is not
computed when recording is disabled to prevent pessimization of non-recorded compilations.
Trait Implementations§
Source§impl Clone for WasmChecksum
impl Clone for WasmChecksum
Source§fn clone(&self) -> WasmChecksum
fn clone(&self) -> WasmChecksum
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 WasmChecksum
impl Debug for WasmChecksum
Source§impl Default for WasmChecksum
impl Default for WasmChecksum
Source§fn default() -> WasmChecksum
fn default() -> WasmChecksum
Returns the “default value” for a type. Read more
Source§impl Deref for WasmChecksum
impl Deref for WasmChecksum
Source§impl<'de> Deserialize<'de> for WasmChecksum
impl<'de> Deserialize<'de> for WasmChecksum
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
Source§impl Ord for WasmChecksum
impl Ord for WasmChecksum
Source§fn cmp(&self, other: &WasmChecksum) -> Ordering
fn cmp(&self, other: &WasmChecksum) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmChecksum
impl PartialEq for WasmChecksum
Source§impl PartialOrd for WasmChecksum
impl PartialOrd for WasmChecksum
Source§impl Serialize for WasmChecksum
impl Serialize for WasmChecksum
impl Copy for WasmChecksum
impl Eq for WasmChecksum
impl StructuralPartialEq for WasmChecksum
Auto Trait Implementations§
impl Freeze for WasmChecksum
impl RefUnwindSafe for WasmChecksum
impl Send for WasmChecksum
impl Sync for WasmChecksum
impl Unpin for WasmChecksum
impl UnwindSafe for WasmChecksum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.