[][src]Struct sc_cli::ImportParams

pub struct ImportParams {
    pub pruning_params: PruningParams,
    pub database_params: DatabaseParams,
    pub unsafe_pruning: bool,
    pub wasm_method: WasmExecutionMethod,
    pub execution_strategies: ExecutionStrategiesParams,
    pub state_cache_size: usize,
    pub tracing_targets: Option<String>,
    pub tracing_receiver: TracingReceiver,
}

Parameters for block import.

Fields

pruning_params: PruningParamsdatabase_params: DatabaseParamsunsafe_pruning: bool

Force start with unsafe pruning settings.

When running as a validator it is highly recommended to disable state pruning (i.e. 'archive') which is the default. The node will refuse to start as a validator if pruning is enabled unless this option is set.

wasm_method: WasmExecutionMethod

Method for executing Wasm runtime code.

execution_strategies: ExecutionStrategiesParamsstate_cache_size: usize

Specify the state cache size.

tracing_targets: Option<String>

Comma separated list of targets for tracing.

tracing_receiver: TracingReceiver

Receiver to process tracing messages.

Implementations

impl ImportParams[src]

pub fn tracing_receiver(&self) -> TracingReceiver[src]

Receiver to process tracing messages.

pub fn tracing_targets(&self) -> Option<String>[src]

Comma separated list of targets for tracing.

pub fn state_cache_size(&self) -> usize[src]

Specify the state cache size.

pub fn wasm_method(&self) -> WasmExecutionMethod[src]

Get the WASM execution method from the parameters

pub fn execution_strategies(
    &self,
    is_dev: bool,
    is_validator: bool
) -> ExecutionStrategies
[src]

Get execution strategies for the parameters

Trait Implementations

impl Debug for ImportParams[src]

impl StructOpt for ImportParams[src]

impl StructOptInternal for ImportParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,