pub trait SwapDataRead: StateRead {
// Provided methods
fn pending_swap_payloads(
&self,
) -> Vector<(Position, SwapPayload, CommitmentSource)> { ... }
fn swap_flow(&self, pair: &TradingPair) -> SwapFlow { ... }
fn swap_flows(&self) -> OrdMap<TradingPair, SwapFlow> { ... }
fn pending_batch_swap_outputs(
&self,
) -> OrdMap<TradingPair, BatchSwapOutputData> { ... }
}
Available on crate feature
component
only.Provided Methods§
fn pending_swap_payloads( &self, ) -> Vector<(Position, SwapPayload, CommitmentSource)>
Sourcefn swap_flow(&self, pair: &TradingPair) -> SwapFlow
fn swap_flow(&self, pair: &TradingPair) -> SwapFlow
Get the swap flow for the given trading pair accumulated in this block so far.
fn swap_flows(&self) -> OrdMap<TradingPair, SwapFlow>
fn pending_batch_swap_outputs(&self) -> OrdMap<TradingPair, BatchSwapOutputData>
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.