Struct ethcore::spec::SpecParams
[−]
[src]
pub struct SpecParams<'a> { pub cache_dir: &'a Path, pub optimization_setting: Option<OptimizeFor>, }
Runtime parameters for the spec that are related to how the software should run the chain, rather than integral properties of the chain itself.
Fields
cache_dir: &'a Path
The path to the folder used to cache nodes. This is typically /tmp/ on Unix-like systems
optimization_setting: Option<OptimizeFor>
Whether to run slower at the expense of better memory usage, or run faster while using more memory. This may get more fine-grained in the future but for now is simply a binary option.
Methods
impl<'a> SpecParams<'a>
[src]
impl<'a> SpecParams<'a>
pub fn from_path(path: &'a Path) -> Self
[src]
pub fn from_path(path: &'a Path) -> Self
Create from a cache path, with null values for the other fields
pub fn new(path: &'a Path, optimization: OptimizeFor) -> Self
[src]
pub fn new(path: &'a Path, optimization: OptimizeFor) -> Self
Create from a cache path and an optimization setting
Trait Implementations
impl<'a> Debug for SpecParams<'a>
[src]
impl<'a> Debug for SpecParams<'a>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Clone for SpecParams<'a>
[src]
impl<'a> Clone for SpecParams<'a>
fn clone(&self) -> SpecParams<'a>
[src]
fn clone(&self) -> SpecParams<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for SpecParams<'a>
[src]
impl<'a> Copy for SpecParams<'a>
impl<'a, T: AsRef<Path>> From<&'a T> for SpecParams<'a>
[src]
impl<'a, T: AsRef<Path>> From<&'a T> for SpecParams<'a>
Auto Trait Implementations
impl<'a> Send for SpecParams<'a>
impl<'a> Send for SpecParams<'a>
impl<'a> Sync for SpecParams<'a>
impl<'a> Sync for SpecParams<'a>