Struct polkavm::ModuleConfig
source · pub struct ModuleConfig { /* private fields */ }
Expand description
The configuration for a module.
Implementations§
source§impl ModuleConfig
impl ModuleConfig
sourcepub fn set_page_size(&mut self, page_size: u32) -> &mut Self
pub fn set_page_size(&mut self, page_size: u32) -> &mut Self
Sets the page size used for the module.
Default: 16384
(16k)
sourcepub fn set_gas_metering(&mut self, kind: Option<GasMeteringKind>) -> &mut Self
pub fn set_gas_metering(&mut self, kind: Option<GasMeteringKind>) -> &mut Self
Sets the type of gas metering to enable for this module.
Default: None
Trait Implementations§
source§impl Clone for ModuleConfig
impl Clone for ModuleConfig
source§fn clone(&self) -> ModuleConfig
fn clone(&self) -> ModuleConfig
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 moreAuto Trait Implementations§
impl Freeze for ModuleConfig
impl RefUnwindSafe for ModuleConfig
impl Send for ModuleConfig
impl Sync for ModuleConfig
impl Unpin for ModuleConfig
impl UnwindSafe for ModuleConfig
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)