Expand description
This struct describes the different types that executing a Wasm function in a canister can produce
Variants§
Reply(Vec<u8>)
Raw response, returned in a “happy” case
Reject(String)
Returned with an error message when the canister decides to reject the message
Trait Implementations§
source§impl Clone for WasmResult
impl Clone for WasmResult
source§fn clone(&self) -> WasmResult
fn clone(&self) -> WasmResult
Returns a copy 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 WasmResult
impl Debug for WasmResult
source§impl<'de> Deserialize<'de> for WasmResult
impl<'de> Deserialize<'de> for WasmResult
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 Hash for WasmResult
impl Hash for WasmResult
source§impl PartialEq<WasmResult> for WasmResult
impl PartialEq<WasmResult> for WasmResult
source§fn eq(&self, other: &WasmResult) -> bool
fn eq(&self, other: &WasmResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.