pub struct ActiveProgram<BlockNumber: Copy> {
pub allocations_tree_len: u32,
pub memory_infix: MemoryInfix,
pub gas_reservation_map: GasReservationMap,
pub code_hash: H256,
pub code_exports: BTreeSet<DispatchKind>,
pub static_pages: WasmPagesAmount,
pub state: ProgramState,
pub expiration_block: BlockNumber,
}
Expand description
Active program in storage.
Fields§
§allocations_tree_len: u32
Continuous intervals amount in program allocations.
memory_infix: MemoryInfix
Infix of memory pages storage (is used for memory wake after pausing)
gas_reservation_map: GasReservationMap
Gas reservation map.
code_hash: H256
Code hash of the program.
code_exports: BTreeSet<DispatchKind>
Set of supported dispatch kinds.
static_pages: WasmPagesAmount
Amount of static pages.
state: ProgramState
Initialization state of the program.
expiration_block: BlockNumber
Block number when the program will be expired.
Trait Implementations§
Source§impl<BlockNumber: Clone + Copy> Clone for ActiveProgram<BlockNumber>
impl<BlockNumber: Clone + Copy> Clone for ActiveProgram<BlockNumber>
Source§fn clone(&self) -> ActiveProgram<BlockNumber>
fn clone(&self) -> ActiveProgram<BlockNumber>
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<BlockNumber> Decode for ActiveProgram<BlockNumber>
impl<BlockNumber> Decode for ActiveProgram<BlockNumber>
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<BlockNumber> Encode for ActiveProgram<BlockNumber>
impl<BlockNumber> Encode for ActiveProgram<BlockNumber>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
impl<BlockNumber> EncodeLike for ActiveProgram<BlockNumber>
impl<BlockNumber: Eq + Copy> Eq for ActiveProgram<BlockNumber>
impl<BlockNumber: Copy> StructuralPartialEq for ActiveProgram<BlockNumber>
Auto Trait Implementations§
impl<BlockNumber> Freeze for ActiveProgram<BlockNumber>where
BlockNumber: Freeze,
impl<BlockNumber> RefUnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: RefUnwindSafe,
impl<BlockNumber> Send for ActiveProgram<BlockNumber>where
BlockNumber: Send,
impl<BlockNumber> Sync for ActiveProgram<BlockNumber>where
BlockNumber: Sync,
impl<BlockNumber> Unpin for ActiveProgram<BlockNumber>where
BlockNumber: Unpin,
impl<BlockNumber> UnwindSafe for ActiveProgram<BlockNumber>where
BlockNumber: UnwindSafe,
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