Struct sc_service::client::ClientConfig [−][src]
pub struct ClientConfig<Block: BlockT> { pub offchain_worker_enabled: bool, pub offchain_indexing_api: bool, pub wasm_runtime_overrides: Option<PathBuf>, pub no_genesis: bool, pub wasm_runtime_substitutes: HashMap<Block::Hash, Vec<u8>>, }
Expand description
Relevant client configuration items relevant for the client.
Fields
offchain_worker_enabled: bool
Enable the offchain worker db.
offchain_indexing_api: bool
If true, allows access from the runtime to write into offchain worker db.
wasm_runtime_overrides: Option<PathBuf>
Path where WASM files exist to override the on-chain WASM.
no_genesis: bool
Skip writing genesis state on first start.
wasm_runtime_substitutes: HashMap<Block::Hash, Vec<u8>>
Map of WASM runtime substitute starting at the child of the given block until the runtime version doesn’t match anymore.
Trait Implementations
Auto Trait Implementations
impl<Block> RefUnwindSafe for ClientConfig<Block> where
<Block as Block>::Hash: RefUnwindSafe,
impl<Block> Send for ClientConfig<Block>
impl<Block> Sync for ClientConfig<Block>
impl<Block> Unpin for ClientConfig<Block> where
<Block as Block>::Hash: Unpin,
impl<Block> UnwindSafe for ClientConfig<Block> where
<Block as Block>::Hash: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: 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
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub 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. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,