Struct linera_chain::data_types::BlockExecutionOutcome
source · pub struct BlockExecutionOutcome {
pub messages: Vec<OutgoingMessage>,
pub message_counts: Vec<u32>,
pub state_hash: CryptoHash,
}
Expand description
The messages and the state hash resulting from a block’s execution.
Fields§
§messages: Vec<OutgoingMessage>
§message_counts: Vec<u32>
For each transaction, the cumulative number of messages created by this and all previous
transactions, i.e. message_counts[i]
is the index of the first message created by
transaction i + 1
or later.
state_hash: CryptoHash
Implementations§
source§impl BlockExecutionOutcome
impl BlockExecutionOutcome
pub async fn messages(&self, ctx: &Context<'_>) -> Result<&Vec<OutgoingMessage>>
pub async fn message_counts(&self, ctx: &Context<'_>) -> Result<&Vec<u32>>
pub async fn state_hash(&self, ctx: &Context<'_>) -> Result<&CryptoHash>
source§impl BlockExecutionOutcome
impl BlockExecutionOutcome
pub fn with(self, block: Block) -> ExecutedBlock
Trait Implementations§
source§impl Clone for BlockExecutionOutcome
impl Clone for BlockExecutionOutcome
source§fn clone(&self) -> BlockExecutionOutcome
fn clone(&self) -> BlockExecutionOutcome
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 ContainerType for BlockExecutionOutcome
impl ContainerType for BlockExecutionOutcome
source§async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
Resolves a field value and outputs it as a json value
async_graphql::Value
. Read moresource§fn collect_all_fields<'a>(
&'a self,
ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>,
fields: &mut Fields<'a>
) -> Result<(), ServerError>
fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a> ) -> Result<(), ServerError>
Collect all the fields of the container that are queried in the
selection set. Read more
source§fn find_entity(
&self,
_: &ContextBase<'_, &Positioned<Field>>,
_params: &ConstValue
) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
fn find_entity( &self, _: &ContextBase<'_, &Positioned<Field>>, _params: &ConstValue ) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
Find the GraphQL entity with the given name from the parameter. Read more
source§impl Debug for BlockExecutionOutcome
impl Debug for BlockExecutionOutcome
source§impl<'de> Deserialize<'de> for BlockExecutionOutcome
impl<'de> Deserialize<'de> for BlockExecutionOutcome
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 BlockExecutionOutcome
impl Hash for BlockExecutionOutcome
source§impl OutputType for BlockExecutionOutcome
impl OutputType for BlockExecutionOutcome
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§async fn resolve(
&self,
ctx: &ContextSelectionSet<'_>,
_field: &Positioned<Field>
) -> ServerResult<Value>
async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field> ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value
.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl PartialEq for BlockExecutionOutcome
impl PartialEq for BlockExecutionOutcome
source§fn eq(&self, other: &BlockExecutionOutcome) -> bool
fn eq(&self, other: &BlockExecutionOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockExecutionOutcome
impl Serialize for BlockExecutionOutcome
impl Eq for BlockExecutionOutcome
impl ObjectType for BlockExecutionOutcome
impl StructuralPartialEq for BlockExecutionOutcome
Auto Trait Implementations§
impl Freeze for BlockExecutionOutcome
impl RefUnwindSafe for BlockExecutionOutcome
impl Send for BlockExecutionOutcome
impl Sync for BlockExecutionOutcome
impl Unpin for BlockExecutionOutcome
impl UnwindSafe for BlockExecutionOutcome
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<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.