pub struct BlockExtra {
pub in_msg_description: Lazy<InMsgDescr>,
pub out_msg_description: Lazy<OutMsgDescr>,
pub account_blocks: Lazy<AccountBlocks>,
pub rand_seed: HashBytes,
pub created_by: HashBytes,
pub custom: Option<Lazy<McBlockExtra>>,
}Expand description
Block content.
Fields§
§in_msg_description: Lazy<InMsgDescr>Inbound message description.
out_msg_description: Lazy<OutMsgDescr>Outbound message description.
account_blocks: Lazy<AccountBlocks>Block transactions info.
rand_seed: HashBytesRandom generator seed.
created_by: HashBytesPublic key of the collator who produced this block.
custom: Option<Lazy<McBlockExtra>>Additional block content.
Implementations§
Source§impl BlockExtra
impl BlockExtra
Sourcepub fn empty_in_msg_descr() -> &'static Lazy<InMsgDescr>
pub fn empty_in_msg_descr() -> &'static Lazy<InMsgDescr>
Returns a static reference to an empty inbound message description.
Sourcepub fn empty_out_msg_descr() -> &'static Lazy<OutMsgDescr>
pub fn empty_out_msg_descr() -> &'static Lazy<OutMsgDescr>
Returns a static reference to an empty outbound message description.
Sourcepub fn empty_account_blocks() -> &'static Lazy<AccountBlocks>
pub fn empty_account_blocks() -> &'static Lazy<AccountBlocks>
Returns a static reference to an empty account blocks.
Source§impl BlockExtra
impl BlockExtra
Sourcepub fn load_custom(&self) -> Result<Option<McBlockExtra>, Error>
pub fn load_custom(&self) -> Result<Option<McBlockExtra>, Error>
Tries to load additional block content.
Sourcepub fn load_in_msg_description(&self) -> Result<InMsgDescr, Error>
pub fn load_in_msg_description(&self) -> Result<InMsgDescr, Error>
Tries to load inbound message description.
Sourcepub fn load_out_msg_description(&self) -> Result<OutMsgDescr, Error>
pub fn load_out_msg_description(&self) -> Result<OutMsgDescr, Error>
Tries to load outbound message description.
Trait Implementations§
Source§impl Clone for BlockExtra
impl Clone for BlockExtra
Source§fn clone(&self) -> BlockExtra
fn clone(&self) -> BlockExtra
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockExtra
impl Debug for BlockExtra
Source§impl Default for BlockExtra
impl Default for BlockExtra
Source§impl<'a> Load<'a> for BlockExtra
impl<'a> Load<'a> for BlockExtra
Source§impl Serialize for BlockExtra
impl Serialize for BlockExtra
Source§impl Store for BlockExtra
impl Store for BlockExtra
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl Freeze for BlockExtra
impl !RefUnwindSafe for BlockExtra
impl Send for BlockExtra
impl Sync for BlockExtra
impl Unpin for BlockExtra
impl !UnwindSafe for BlockExtra
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