pub struct DandelionRouteReq<Tx, Id> {
pub tx: Tx,
pub state: TxState<Id>,
}Expand description
A request to route a transaction.
Fields§
§tx: TxThe transaction.
state: TxState<Id>The transaction state.
Trait Implementations§
Source§impl<Tx, Id, P, B, S> Service<DandelionRouteReq<Tx, Id>> for DandelionRouter<P, B, Id, S, Tx>where
Id: Hash + Eq + Clone,
P: TryStream<Ok = OutboundPeer<Id, S>, Error = BoxError>,
B: Service<DiffuseRequest<Tx>, Error = BoxError>,
B::Future: Send + 'static,
S: Service<StemRequest<Tx>, Error = BoxError>,
S::Future: Send + 'static,
impl<Tx, Id, P, B, S> Service<DandelionRouteReq<Tx, Id>> for DandelionRouter<P, B, Id, S, Tx>where
Id: Hash + Eq + Clone,
P: TryStream<Ok = OutboundPeer<Id, S>, Error = BoxError>,
B: Service<DiffuseRequest<Tx>, Error = BoxError>,
B::Future: Send + 'static,
S: Service<StemRequest<Tx>, Error = BoxError>,
S::Future: Send + 'static,
Source§type Error = DandelionRouterError
type Error = DandelionRouterError
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<State, DandelionRouterError>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<State, DandelionRouterError>> + 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: DandelionRouteReq<Tx, Id>) -> Self::Future
fn call(&mut self, req: DandelionRouteReq<Tx, Id>) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<Tx, Id> Freeze for DandelionRouteReq<Tx, Id>
impl<Tx, Id> RefUnwindSafe for DandelionRouteReq<Tx, Id>where
Tx: RefUnwindSafe,
Id: RefUnwindSafe,
impl<Tx, Id> Send for DandelionRouteReq<Tx, Id>
impl<Tx, Id> Sync for DandelionRouteReq<Tx, Id>
impl<Tx, Id> Unpin for DandelionRouteReq<Tx, Id>
impl<Tx, Id> UnsafeUnpin for DandelionRouteReq<Tx, Id>where
Tx: UnsafeUnpin,
Id: UnsafeUnpin,
impl<Tx, Id> UnwindSafe for DandelionRouteReq<Tx, Id>where
Tx: UnwindSafe,
Id: 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
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.