Struct ethcore::miner::pool_client::NonceCache [−][src]
pub struct NonceCache { /* fields omitted */ }Cache for state nonces.
Methods
impl NonceCache[src]
impl NonceCachepub fn new(limit: usize) -> Self[src]
pub fn new(limit: usize) -> SelfCreate new cache with a limit of limit entries.
pub fn get(&self, sender: &Address) -> Option<U256>[src]
pub fn get(&self, sender: &Address) -> Option<U256>Retrieve a cached nonce for given sender.
pub fn clear(&self)[src]
pub fn clear(&self)Clear all entries from the cache.
Trait Implementations
impl Debug for NonceCache[src]
impl Debug for NonceCachefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for NonceCache[src]
impl Clone for NonceCachefn clone(&self) -> NonceCache[src]
fn clone(&self) -> NonceCacheReturns 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
Auto Trait Implementations
impl Send for NonceCache
impl Send for NonceCacheimpl Sync for NonceCache
impl Sync for NonceCache