pub struct CacheConfig {
pub transaction_ttl: Duration,
pub utxo_ttl: Duration,
pub block_header_ttl: Duration,
pub max_transactions: usize,
pub max_utxos: usize,
pub max_block_headers: usize,
}Expand description
Configuration for the cache
Fields§
§transaction_ttl: DurationTime-to-live for transaction cache entries
utxo_ttl: DurationTime-to-live for UTXO cache entries
block_header_ttl: DurationTime-to-live for block header cache entries
max_transactions: usizeMaximum number of transactions to cache
max_utxos: usizeMaximum number of UTXOs to cache
max_block_headers: usizeMaximum number of block headers to cache
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheConfig
impl Debug for CacheConfig
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more