pub struct FunctionRun {
pub workload_hash: [u8; 32],
pub input_digest: [u8; 32],
pub output_digest: [u8; 32],
pub fuel_used: u64,
pub mem_peak_mb: u32,
}Expand description
The deterministic record of one function execution. The fields are exactly what must match across honest hosts; nothing device-dependent (e.g. wall time) is included.
Fields§
§workload_hash: [u8; 32]BLAKE3 of the WASM module — the workload’s identity.
input_digest: [u8; 32]BLAKE3 of the input bytes.
output_digest: [u8; 32]BLAKE3 of the output bytes — what the function actually computed.
fuel_used: u64Fuel consumed (a deterministic instruction count).
mem_peak_mb: u32Peak linear memory, in whole MB.
Trait Implementations§
Source§impl Clone for FunctionRun
impl Clone for FunctionRun
Source§impl Debug for FunctionRun
impl Debug for FunctionRun
Source§impl<'de> Deserialize<'de> for FunctionRun
impl<'de> Deserialize<'de> for FunctionRun
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
impl Eq for FunctionRun
Source§impl PartialEq for FunctionRun
impl PartialEq for FunctionRun
Source§impl Serialize for FunctionRun
impl Serialize for FunctionRun
impl StructuralPartialEq for FunctionRun
Auto Trait Implementations§
impl Forget for FunctionRun
impl Freeze for FunctionRun
impl RefUnwindSafe for FunctionRun
impl Send for FunctionRun
impl Sync for FunctionRun
impl Unpin for FunctionRun
impl UnsafeUnpin for FunctionRun
impl UnwindSafe for FunctionRun
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more