Struct core_processor::common::ExecutableActorData
source · pub struct ExecutableActorData {
pub allocations: BTreeSet<WasmPage>,
pub pages_with_data: BTreeSet<GearPage>,
pub code_id: CodeId,
pub code_exports: BTreeSet<DispatchKind>,
pub static_pages: WasmPage,
pub initialized: bool,
pub gas_reservation_map: GasReservationMap,
}
Expand description
Executable actor data.
Fields§
§allocations: BTreeSet<WasmPage>
Set of dynamic wasm page numbers, which are allocated by the program.
pages_with_data: BTreeSet<GearPage>
Set of gear pages numbers, which has data in storage.
code_id: CodeId
Id of the program code.
code_exports: BTreeSet<DispatchKind>
Exported functions by the program code.
static_pages: WasmPage
Count of static memory pages.
initialized: bool
Flag indicates if the program is initialized.
gas_reservation_map: GasReservationMap
Gas reservation map.
Trait Implementations§
source§impl Clone for ExecutableActorData
impl Clone for ExecutableActorData
source§fn clone(&self) -> ExecutableActorData
fn clone(&self) -> ExecutableActorData
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 ExecutableActorData
impl Debug for ExecutableActorData
source§impl Decode for ExecutableActorData
impl Decode for ExecutableActorData
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.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for ExecutableActorData
impl Encode for ExecutableActorData
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.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike<ExecutableActorData> for ExecutableActorData
Auto Trait Implementations§
impl RefUnwindSafe for ExecutableActorData
impl Send for ExecutableActorData
impl Sync for ExecutableActorData
impl Unpin for ExecutableActorData
impl UnwindSafe for ExecutableActorData
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more