pub enum TxpoolReadResponse {
Show 13 variants
TxBlob {
tx_blob: Vec<u8>,
state_stem: bool,
},
TxVerificationData(TransactionVerificationData),
FilterKnownTxBlobHashes {
unknown_blob_hashes: HashSet<TransactionBlobHash>,
stem_pool_hashes: Vec<TransactionHash>,
},
TxsForBlock {
txs: HashMap<[u8; 32], TransactionVerificationData>,
missing: Vec<usize>,
},
Backlog(Vec<TxEntry>),
Size(usize),
PoolInfo(PoolInfo),
TxsByHash(Vec<TxInPool>),
KeyImagesSpent(bool),
KeyImagesSpentVec(Vec<bool>),
Pool {
txs: Vec<TxInfo>,
spent_key_images: Vec<SpentKeyImageInfo>,
},
PoolStats(TxpoolStats),
AllHashes(Vec<[u8; 32]>),
}Expand description
The transaction pool [tower::Service] read response type.
Variants§
TxBlob
The response for TxpoolReadRequest::TxBlob.
TxVerificationData(TransactionVerificationData)
The response for TxpoolReadRequest::TxVerificationData.
FilterKnownTxBlobHashes
The response for TxpoolReadRequest::FilterKnownTxBlobHashes.
Fields
unknown_blob_hashes: HashSet<TransactionBlobHash>The blob hashes that are unknown.
stem_pool_hashes: Vec<TransactionHash>The tx hashes of the blob hashes that were known but were in the stem pool.
TxsForBlock
The response for TxpoolReadRequest::TxsForBlock.
Fields
Backlog(Vec<TxEntry>)
Response to TxpoolReadRequest::Backlog.
The inner Vec contains information on all
the transactions currently in the pool.
Size(usize)
Response to TxpoolReadRequest::Size.
The inner value is the amount of transactions currently in the pool.
PoolInfo(PoolInfo)
Response to TxpoolReadRequest::PoolInfo.
TxsByHash(Vec<TxInPool>)
Response to TxpoolReadRequest::TxsByHash.
KeyImagesSpent(bool)
Response to TxpoolReadRequest::KeyImagesSpent.
KeyImagesSpentVec(Vec<bool>)
Response to TxpoolReadRequest::KeyImagesSpentVec.
Inner value is a Vec the same length as the input.
The index of each entry corresponds with the request.
true means that the key image was spent.
Pool
Response to TxpoolReadRequest::Pool.
PoolStats(TxpoolStats)
Response to TxpoolReadRequest::PoolStats.
AllHashes(Vec<[u8; 32]>)
Response to TxpoolReadRequest::AllHashes.
Auto Trait Implementations§
impl !Freeze for TxpoolReadResponse
impl RefUnwindSafe for TxpoolReadResponse
impl Send for TxpoolReadResponse
impl Sync for TxpoolReadResponse
impl Unpin for TxpoolReadResponse
impl UnsafeUnpin for TxpoolReadResponse
impl UnwindSafe for TxpoolReadResponse
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
§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: 696 bytes
Size for each variant:
TxBlob: 40 bytesTxVerificationData: 696 bytesFilterKnownTxBlobHashes: 80 bytesTxsForBlock: 80 bytesBacklog: 32 bytesSize: 16 bytesPoolInfo: 104 bytesTxsByHash: 32 bytesKeyImagesSpent: 9 bytesKeyImagesSpentVec: 32 bytesPool: 56 bytesPoolStats: 96 bytesAllHashes: 32 bytes