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 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 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.
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 Encode for ExecutableActorData
impl Encode for ExecutableActorData
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
impl EncodeLike for ExecutableActorData
Auto Trait Implementations§
impl Freeze for ExecutableActorData
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