Struct ethcore::miner::pool_client::NonceCache [−][src]
pub struct NonceCache { /* fields omitted */ }
Cache for state nonces.
Methods
impl NonceCache
[src]
impl NonceCache
pub fn new(limit: usize) -> Self
[src]
pub fn new(limit: usize) -> Self
Create 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 NonceCache
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for NonceCache
[src]
impl Clone for NonceCache
fn clone(&self) -> NonceCache
[src]
fn clone(&self) -> NonceCache
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
Auto Trait Implementations
impl Send for NonceCache
impl Send for NonceCache
impl Sync for NonceCache
impl Sync for NonceCache