pub struct IncomingTx<Tx, TxId, PeerId> { /* private fields */ }Expand description
An incoming transaction that has gone through the preprocessing stage.
Trait Implementations§
Source§impl<Tx, TxId, PeerId> Service<IncomingTx<Tx, TxId, PeerId>> for DandelionPoolService<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> Service<IncomingTx<Tx, TxId, PeerId>> for DandelionPoolService<Tx, TxId, PeerId>
Source§type Future = Pin<Box<dyn Future<Output = Result<<DandelionPoolService<Tx, TxId, PeerId> as Service<IncomingTx<Tx, TxId, PeerId>>>::Response, <DandelionPoolService<Tx, TxId, PeerId> as Service<IncomingTx<Tx, TxId, PeerId>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<DandelionPoolService<Tx, TxId, PeerId> as Service<IncomingTx<Tx, TxId, PeerId>>>::Response, <DandelionPoolService<Tx, TxId, PeerId> as Service<IncomingTx<Tx, TxId, PeerId>>>::Error>> + Send>>
The future response value.
Source§fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(())) when the service is able to process requests. Read moreSource§fn call(&mut self, req: IncomingTx<Tx, TxId, PeerId>) -> Self::Future
fn call(&mut self, req: IncomingTx<Tx, TxId, PeerId>) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<Tx, TxId, PeerId> Freeze for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> RefUnwindSafe for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> Send for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> Sync for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> Unpin for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> UnsafeUnpin for IncomingTx<Tx, TxId, PeerId>
impl<Tx, TxId, PeerId> UnwindSafe for IncomingTx<Tx, TxId, PeerId>
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
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> ⓘ
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.