pub enum TxStoreResponse<Tx, TxID> {
Ok,
Contains(Option<State>),
Transaction(Option<(Tx, State)>),
IDs(Vec<TxID>),
}Expand description
A response sent back from the backing transaction pool.
Variants§
Ok
A generic ok response.
Contains(Option<State>)
A response containing a Option for if the transaction is in the pool (Some) or not (None) and in which pool
the tx is in.
Transaction(Option<(Tx, State)>)
A response containing a requested transaction.
IDs(Vec<TxID>)
A list of transaction IDs.
Auto Trait Implementations§
impl<Tx, TxID> Freeze for TxStoreResponse<Tx, TxID>where
Tx: Freeze,
impl<Tx, TxID> RefUnwindSafe for TxStoreResponse<Tx, TxID>where
Tx: RefUnwindSafe,
TxID: RefUnwindSafe,
impl<Tx, TxID> Send for TxStoreResponse<Tx, TxID>
impl<Tx, TxID> Sync for TxStoreResponse<Tx, TxID>
impl<Tx, TxID> Unpin for TxStoreResponse<Tx, TxID>
impl<Tx, TxID> UnwindSafe for TxStoreResponse<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
Mutably borrows from an owned value. Read more
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.