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

The path to the folder used to cache nodes. This is typically /tmp/ on Unix-like systems

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]

Create from a cache path, with null values for the other fields

Create from a cache path and an optimization setting

Trait Implementations

impl<'a> Debug for SpecParams<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for SpecParams<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for SpecParams<'a>
[src]

impl<'a, T: AsRef<Path>> From<&'a T> for SpecParams<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for SpecParams<'a>

impl<'a> Sync for SpecParams<'a>