Struct casper_node::MainReactorConfig
source · pub struct MainReactorConfig {Show 19 fields
pub node: NodeConfig,
pub logging: LoggingConfig,
pub consensus: Config,
pub network: Config,
pub event_stream_server: Config,
pub rest_server: Config,
pub rpc_server: Config,
pub speculative_exec_server: SpeculativeExecConfig,
pub storage: StorageConfig,
pub gossip: Config,
pub fetcher: Config,
pub contract_runtime: Config,
pub deploy_acceptor: Config,
pub deploy_buffer: Config,
pub diagnostics_port: Config,
pub block_accumulator: Config,
pub block_synchronizer: Config,
pub block_validator: Config,
pub upgrade_watcher: Config,
}
Expand description
Root configuration.
Fields§
§node: NodeConfig
Config values for the node.
logging: LoggingConfig
Config values for logging.
consensus: Config
Config values for consensus.
network: Config
Config values for network.
event_stream_server: Config
Config values for the event stream server.
rest_server: Config
Config values for the REST server.
rpc_server: Config
Config values for the Json-RPC server.
speculative_exec_server: SpeculativeExecConfig
Config values for speculative execution.
storage: StorageConfig
Config values for storage.
gossip: Config
Config values for gossip.
fetcher: Config
Config values for fetchers.
contract_runtime: Config
Config values for the contract runtime.
deploy_acceptor: Config
Config values for the deploy acceptor.
deploy_buffer: Config
Config values for the deploy buffer.
diagnostics_port: Config
Config values for the diagnostics port.
block_accumulator: Config
Config values for the block accumulator.
block_synchronizer: Config
Config values for the block synchronizer.
block_validator: Config
Config values for the block validator.
upgrade_watcher: Config
Config values for the upgrade watcher.
Trait Implementations§
source§impl DataSize for Config
impl DataSize for Config
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§fn estimate_detailed_heap_size(&self) -> MemUsageNode
fn estimate_detailed_heap_size(&self) -> MemUsageNode
Create a tree of memory estimations. Read more
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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.