Type Alias ResultAndState
pub type ResultAndState<H = HaltReason> = ExecResultAndState<ExecutionResult<H>>;
Expand description
Type alias for backwards compatibility.
Aliased Type§
pub struct ResultAndState<H = HaltReason> {
pub result: ExecutionResult<H>,
pub state: HashMap<Address, Account, RandomState>,
}
Fields§
§result: ExecutionResult<H>
Execution result
state: HashMap<Address, Account, RandomState>
Output State.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.
Implementations
§impl<R, S> ExecResultAndState<R, S>
impl<R, S> ExecResultAndState<R, S>
pub fn new(result: R, state: S) -> ExecResultAndState<R, S>
pub fn new(result: R, state: S) -> ExecResultAndState<R, S>
Creates new ResultAndState.
Trait Implementations
§impl<R, S> Clone for ExecResultAndState<R, S>
impl<R, S> Clone for ExecResultAndState<R, S>
§fn clone(&self) -> ExecResultAndState<R, S>
fn clone(&self) -> ExecResultAndState<R, S>
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 more§impl<R, S> Debug for ExecResultAndState<R, S>
impl<R, S> Debug for ExecResultAndState<R, S>
§impl<'de, R, S> Deserialize<'de> for ExecResultAndState<R, S>where
R: Deserialize<'de>,
S: Deserialize<'de>,
impl<'de, R, S> Deserialize<'de> for ExecResultAndState<R, S>where
R: Deserialize<'de>,
S: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecResultAndState<R, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecResultAndState<R, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<R, S> Hash for ExecResultAndState<R, S>
impl<R, S> Hash for ExecResultAndState<R, S>
§impl<R, S> PartialEq for ExecResultAndState<R, S>
impl<R, S> PartialEq for ExecResultAndState<R, S>
§impl<R, S> Serialize for ExecResultAndState<R, S>
impl<R, S> Serialize for ExecResultAndState<R, S>
§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