Struct ethcore::spec::SpecParams
source · [−]pub struct SpecParams<'a> {
pub cache_dir: &'a Path,
pub optimization_setting: Option<OptimizeFor>,
}
Expand description
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.
Implementations
sourceimpl<'a> SpecParams<'a>
impl<'a> SpecParams<'a>
Trait Implementations
sourceimpl<'a> Clone for SpecParams<'a>
impl<'a> Clone for SpecParams<'a>
sourcefn clone(&self) -> SpecParams<'a>
fn clone(&self) -> SpecParams<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SpecParams<'a>
impl<'a> Debug for SpecParams<'a>
impl<'a> Copy for SpecParams<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SpecParams<'a>
impl<'a> Send for SpecParams<'a>
impl<'a> Sync for SpecParams<'a>
impl<'a> Unpin for SpecParams<'a>
impl<'a> UnwindSafe for SpecParams<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more