pub struct Ethash { /* private fields */ }
Expand description
Engine using Ethash proof-of-work consensus algorithm, suitable for Ethereum mainnet chains in the Olympic, Frontier and Homestead eras.
Implementations
sourceimpl Ethash
impl Ethash
sourcepub fn new<T: Into<Option<OptimizeFor>>>(
cache_dir: &Path,
ethash_params: EthashParams,
machine: EthereumMachine,
optimize_for: T
) -> Arc<Self>
pub fn new<T: Into<Option<OptimizeFor>>>(
cache_dir: &Path,
ethash_params: EthashParams,
machine: EthereumMachine,
optimize_for: T
) -> Arc<Self>
Create a new instance of Ethash engine
Auto Trait Implementations
impl !RefUnwindSafe for Ethash
impl Send for Ethash
impl Sync for Ethash
impl Unpin for Ethash
impl !UnwindSafe for Ethash
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