Struct casper_rust_wasm_sdk::watcher::ExecutionResult
source · pub struct ExecutionResult {
pub success: Option<Version2>,
pub failure: Option<Failure>,
}
Expand description
Represents the result of an execution, either Success or Failure.
Fields§
§success: Option<Version2>
Optional Success information.
failure: Option<Failure>
Optional Failure information.
Trait Implementations§
source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
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 ExecutionResult
impl Debug for ExecutionResult
source§impl Default for ExecutionResult
impl Default for ExecutionResult
source§fn default() -> ExecutionResult
fn default() -> ExecutionResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecutionResult
impl<'de> Deserialize<'de> for ExecutionResult
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 From<ExecutionResult> for JsValue
impl From<ExecutionResult> for JsValue
source§fn from(value: ExecutionResult) -> Self
fn from(value: ExecutionResult) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for ExecutionResult
impl FromWasmAbi for ExecutionResult
source§impl IntoWasmAbi for ExecutionResult
impl IntoWasmAbi for ExecutionResult
source§impl LongRefFromWasmAbi for ExecutionResult
impl LongRefFromWasmAbi for ExecutionResult
source§impl OptionFromWasmAbi for ExecutionResult
impl OptionFromWasmAbi for ExecutionResult
source§impl OptionIntoWasmAbi for ExecutionResult
impl OptionIntoWasmAbi for ExecutionResult
source§impl RefFromWasmAbi for ExecutionResult
impl RefFromWasmAbi for ExecutionResult
§type Anchor = RcRef<ExecutionResult>
type Anchor = RcRef<ExecutionResult>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for ExecutionResult
impl RefMutFromWasmAbi for ExecutionResult
source§impl Serialize for ExecutionResult
impl Serialize for ExecutionResult
source§impl TryFromJsValue for ExecutionResult
impl TryFromJsValue for ExecutionResult
source§impl VectorFromWasmAbi for ExecutionResult
impl VectorFromWasmAbi for ExecutionResult
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ExecutionResult]>
source§impl VectorIntoJsValue for ExecutionResult
impl VectorIntoJsValue for ExecutionResult
fn vector_into_jsvalue(vector: Box<[ExecutionResult]>) -> JsValue
source§impl VectorIntoWasmAbi for ExecutionResult
impl VectorIntoWasmAbi for ExecutionResult
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ExecutionResult]>) -> Self::Abi
source§impl WasmDescribeVector for ExecutionResult
impl WasmDescribeVector for ExecutionResult
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.