pub struct ExecConfigBuilder { /* private fields */ }
Expand description
A builder for an ExecConfig
.
Any field that isn’t specified will be defaulted. See the module docs for the set of default values.
Implementations§
source§impl ExecConfigBuilder
impl ExecConfigBuilder
sourcepub fn with_accounts(self, accounts: Vec<GenesisAccount>) -> Self
pub fn with_accounts(self, accounts: Vec<GenesisAccount>) -> Self
Sets the genesis accounts.
sourcepub fn with_wasm_config(self, wasm_config: WasmConfig) -> Self
pub fn with_wasm_config(self, wasm_config: WasmConfig) -> Self
Sets the Wasm config options.
sourcepub fn with_system_config(self, system_config: SystemConfig) -> Self
pub fn with_system_config(self, system_config: SystemConfig) -> Self
Sets the system config options.
sourcepub fn with_validator_slots(self, validator_slots: u32) -> Self
pub fn with_validator_slots(self, validator_slots: u32) -> Self
Sets the validator slots config option.
sourcepub fn with_auction_delay(self, auction_delay: u64) -> Self
pub fn with_auction_delay(self, auction_delay: u64) -> Self
Sets the auction delay config option.
sourcepub fn with_locked_funds_period_millis(
self,
locked_funds_period_millis: u64
) -> Self
pub fn with_locked_funds_period_millis( self, locked_funds_period_millis: u64 ) -> Self
Sets the locked funds period config option.
sourcepub fn with_round_seigniorage_rate(
self,
round_seigniorage_rate: Ratio<u64>
) -> Self
pub fn with_round_seigniorage_rate( self, round_seigniorage_rate: Ratio<u64> ) -> Self
Sets the round seigniorage rate config option.
sourcepub fn with_unbonding_delay(self, unbonding_delay: u64) -> Self
pub fn with_unbonding_delay(self, unbonding_delay: u64) -> Self
Sets the unbonding delay config option.
sourcepub fn with_genesis_timestamp_millis(
self,
genesis_timestamp_millis: u64
) -> Self
pub fn with_genesis_timestamp_millis( self, genesis_timestamp_millis: u64 ) -> Self
Sets the genesis timestamp config option.
sourcepub fn with_refund_handling(self, refund_handling: RefundHandling) -> Self
pub fn with_refund_handling(self, refund_handling: RefundHandling) -> Self
Sets the refund handling config option.
sourcepub fn with_fee_handling(self, fee_handling: FeeHandling) -> Self
pub fn with_fee_handling(self, fee_handling: FeeHandling) -> Self
Sets the fee handling config option.
sourcepub fn build(self) -> ExecConfig
pub fn build(self) -> ExecConfig
Builds a new ExecConfig
object.
Trait Implementations§
source§impl Debug for ExecConfigBuilder
impl Debug for ExecConfigBuilder
source§impl Default for ExecConfigBuilder
impl Default for ExecConfigBuilder
source§fn default() -> ExecConfigBuilder
fn default() -> ExecConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ExecConfigBuilder
impl Send for ExecConfigBuilder
impl Sync for ExecConfigBuilder
impl Unpin for ExecConfigBuilder
impl UnwindSafe for ExecConfigBuilder
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.