pub enum TxStoreRequest<Tx, TxID> {
Store(Tx, TxID, State),
Get(TxID),
Promote(TxID),
Contains(TxID),
IDsInStemPool,
}Expand description
A request sent to the backing transaction pool storage.
Variants§
Store(Tx, TxID, State)
A request to store a transaction with the ID to store it under and the pool to store it in.
If the tx is already in the pool then do nothing, unless the tx is in the stem pool then move it to the fluff pool, if this request state is fluff.
Get(TxID)
A request to retrieve a Tx with the given ID from the pool, should not remove that tx from the pool.
Must return TxStoreResponse::Transaction
Promote(TxID)
Promote a transaction from the stem pool to the public pool.
If the tx is already in the fluff pool do nothing.
This should not error if the tx isn’t in the pool at all.
Contains(TxID)
A request to check if a translation is in the pool.
Must return TxStoreResponse::Contains
IDsInStemPool
Returns the IDs of all the transaction in the stem pool.
Must return TxStoreResponse::IDs
Auto Trait Implementations§
impl<Tx, TxID> Freeze for TxStoreRequest<Tx, TxID>
impl<Tx, TxID> RefUnwindSafe for TxStoreRequest<Tx, TxID>where
Tx: RefUnwindSafe,
TxID: RefUnwindSafe,
impl<Tx, TxID> Send for TxStoreRequest<Tx, TxID>
impl<Tx, TxID> Sync for TxStoreRequest<Tx, TxID>
impl<Tx, TxID> Unpin for TxStoreRequest<Tx, TxID>
impl<Tx, TxID> UnwindSafe for TxStoreRequest<Tx, TxID>where
Tx: UnwindSafe,
TxID: UnwindSafe,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.