pub enum TxpoolReadRequest {
Show 13 variants
TxBlob(TransactionHash),
TxVerificationData(TransactionHash),
FilterKnownTxBlobHashes(HashSet<TransactionBlobHash>),
TxsForBlock(Vec<TransactionHash>),
Backlog,
Size {
include_sensitive_txs: bool,
},
PoolInfo {
include_sensitive_txs: bool,
max_tx_count: usize,
start_time: Option<NonZero<usize>>,
},
TxsByHash {
tx_hashes: Vec<[u8; 32]>,
include_sensitive_txs: bool,
},
KeyImagesSpent {
key_images: HashSet<[u8; 32]>,
include_sensitive_txs: bool,
},
KeyImagesSpentVec {
key_images: Vec<[u8; 32]>,
include_sensitive_txs: bool,
},
Pool {
include_sensitive_txs: bool,
},
PoolStats {
include_sensitive_txs: bool,
},
AllHashes {
include_sensitive_txs: bool,
},
}Expand description
Variants§
TxBlob(TransactionHash)
Get the blob (raw bytes) of a transaction with the given hash.
TxVerificationData(TransactionHash)
Get the [TransactionVerificationData] of a transaction in the tx pool.
FilterKnownTxBlobHashes(HashSet<TransactionBlobHash>)
Filter (remove) all known transactions from the set.
The hash is not the transaction hash, it is the hash of the serialized tx-blob.
TxsForBlock(Vec<TransactionHash>)
Get some transactions for an incoming block.
Backlog
Get information on all transactions in the pool.
Size
Get the number of transactions in the pool.
PoolInfo
Get general information on the txpool.
Fields
TxsByHash
Get transactions by their hashes.
KeyImagesSpent
Check if any individual key images of a set exist in the txpool.
KeyImagesSpentVec
Same as TxpoolReadRequest::KeyImagesSpent but with a Vec.
The response will be in the same order as the request.
Pool
Get txpool info.
PoolStats
Get txpool stats.
AllHashes
Get the hashes of all transaction in the pool.
Trait Implementations§
Source§impl Clone for TxpoolReadRequest
impl Clone for TxpoolReadRequest
Source§fn clone(&self) -> TxpoolReadRequest
fn clone(&self) -> TxpoolReadRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Service<TxpoolReadRequest> for TxpoolReadHandle
impl Service<TxpoolReadRequest> for TxpoolReadHandle
Source§type Response = TxpoolReadResponse
type Response = TxpoolReadResponse
Source§type Error = TxPoolError
type Error = TxPoolError
Source§type Future = InfallibleOneshotReceiver<Result<<TxpoolReadHandle as Service<TxpoolReadRequest>>::Response, <TxpoolReadHandle as Service<TxpoolReadRequest>>::Error>>
type Future = InfallibleOneshotReceiver<Result<<TxpoolReadHandle as Service<TxpoolReadRequest>>::Response, <TxpoolReadHandle as Service<TxpoolReadRequest>>::Error>>
Source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Poll::Ready(Ok(())) when the service is able to process requests. Read moreSource§fn call(&mut self, req: TxpoolReadRequest) -> Self::Future
fn call(&mut self, req: TxpoolReadRequest) -> Self::Future
Auto Trait Implementations§
impl Freeze for TxpoolReadRequest
impl RefUnwindSafe for TxpoolReadRequest
impl Send for TxpoolReadRequest
impl Sync for TxpoolReadRequest
impl Unpin for TxpoolReadRequest
impl UnsafeUnpin for TxpoolReadRequest
impl UnwindSafe for TxpoolReadRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
TxBlob: 32 bytesTxVerificationData: 32 bytesFilterKnownTxBlobHashes: 55 bytesTxsForBlock: 31 bytesBacklog: 0 bytesSize: 1 bytePoolInfo: 23 bytesTxsByHash: 31 bytesKeyImagesSpent: 55 bytesKeyImagesSpentVec: 31 bytesPool: 1 bytePoolStats: 1 byteAllHashes: 1 byte