pub struct SubstrateConfiguration {Show 16 fields
pub impl_name: String,
pub impl_version: String,
pub operator: bool,
pub base_path: PathBuf,
pub transaction_pool: TransactionPoolOptions,
pub network: SubstrateNetworkConfiguration,
pub keystore: KeystoreConfig,
pub state_pruning: PruningMode,
pub blocks_pruning: BlocksPruning,
pub rpc_options: SubstrateRpcConfiguration,
pub prometheus_listen_on: Option<SocketAddr>,
pub telemetry_endpoints: Option<TelemetryEndpoints>,
pub force_authoring: bool,
pub chain_spec: Box<dyn ChainSpec>,
pub executor: ExecutorConfiguration,
pub trie_cache_size: Option<usize>,
}Expand description
Fields§
§impl_name: StringImplementation name
impl_version: StringImplementation version
operator: boolOperator
base_path: PathBufBase path for node data
transaction_pool: TransactionPoolOptionsExtrinsic pool configuration
network: SubstrateNetworkConfigurationNetwork configuration
keystore: KeystoreConfigKeystore configuration
state_pruning: PruningModeState pruning settings
blocks_pruning: BlocksPruningNumber of blocks to keep in the db.
NOTE: only finalized blocks are subject for removal!
rpc_options: SubstrateRpcConfigurationRPC configuration
prometheus_listen_on: Option<SocketAddr>IP and port (TCP) to start Prometheus exporter on
telemetry_endpoints: Option<TelemetryEndpoints>Telemetry service URL. None if disabled.
Enable authoring even when offline
chain_spec: Box<dyn ChainSpec>Chain specification
executor: ExecutorConfigurationExecutor configuration
trie_cache_size: Option<usize>Trie cache size
Trait Implementations§
Source§impl Debug for SubstrateConfiguration
impl Debug for SubstrateConfiguration
Source§impl From<SubstrateConfiguration> for Configuration
impl From<SubstrateConfiguration> for Configuration
Source§fn from(configuration: SubstrateConfiguration) -> Self
fn from(configuration: SubstrateConfiguration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubstrateConfiguration
impl !RefUnwindSafe for SubstrateConfiguration
impl Send for SubstrateConfiguration
impl Sync for SubstrateConfiguration
impl Unpin for SubstrateConfiguration
impl !UnwindSafe for SubstrateConfiguration
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.