pub struct PersistentPool<'a, C: ?Sized, T: RawAccess> { /* private fields */ }Expand description
Persistent transaction pool that uses both a provided ephemeral cache and the cache persisting in the node database.
Implementations§
Source§impl<'a, C, T> PersistentPool<'a, C, T>
impl<'a, C, T> PersistentPool<'a, C, T>
Trait Implementations§
Source§impl<C, T> TransactionCache for PersistentPool<'_, C, T>
impl<C, T> TransactionCache for PersistentPool<'_, C, T>
Source§fn get_transaction(&self, hash: Hash) -> Option<Verified<AnyTx>>
fn get_transaction(&self, hash: Hash) -> Option<Verified<AnyTx>>
Gets a transaction from this cache.
None is returned if the transaction is not
in the cache.Source§fn contains_transaction(&self, hash: Hash) -> bool
fn contains_transaction(&self, hash: Hash) -> bool
Checks if the cache contains a transaction with the specified hash. Read more
Source§fn transactions(&self) -> Transactions<'_>
fn transactions(&self) -> Transactions<'_>
Returns iterator over transactions contained in this cache.
Auto Trait Implementations§
impl<'a, C, T> Freeze for PersistentPool<'a, C, T>
impl<'a, C, T> RefUnwindSafe for PersistentPool<'a, C, T>
impl<'a, C, T> Send for PersistentPool<'a, C, T>
impl<'a, C, T> Sync for PersistentPool<'a, C, T>
impl<'a, C, T> Unpin for PersistentPool<'a, C, T>
impl<'a, C, T> UnwindSafe for PersistentPool<'a, C, T>
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