penumbra_dex::component::router

Trait RouteAndFill

Source
pub trait RouteAndFill: StateWrite + Sized {
    // Provided method
    fn route_and_fill<'life0, 'async_trait>(
        self: &'life0 mut Arc<Self>,
        asset_1: Id,
        asset_2: Id,
        input: Amount,
        params: RoutingParams,
        execution_circuit_breaker: ExecutionCircuitBreaker,
    ) -> Pin<Box<dyn Future<Output = Result<Option<SwapExecution>>> + Send + 'async_trait>>
       where Self: 'static + Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature component only.
Expand description

Lower-level trait that ties together the routing and filling logic.

Provided Methods§

Source

fn route_and_fill<'life0, 'async_trait>( self: &'life0 mut Arc<Self>, asset_1: Id, asset_2: Id, input: Amount, params: RoutingParams, execution_circuit_breaker: ExecutionCircuitBreaker, ) -> Pin<Box<dyn Future<Output = Result<Option<SwapExecution>>> + Send + 'async_trait>>
where Self: 'static + Send + 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§