pub struct ExchangeFactory;Expand description
Factory for creating exchange adapters
Implementations§
Source§impl ExchangeFactory
impl ExchangeFactory
Sourcepub fn create_exchange(config: &ExchangeConfig) -> Result<Arc<dyn Exchange>>
pub fn create_exchange(config: &ExchangeConfig) -> Result<Arc<dyn Exchange>>
Creates a new exchange adapter from configuration
Sourcepub async fn create_execution_engine_with_exchanges(
configs: &[ExchangeConfig],
execution_tx: Sender<ExecutionReport>,
) -> Result<(ExecutionEngine, Sender<ExecutionEvent>)>
pub async fn create_execution_engine_with_exchanges( configs: &[ExchangeConfig], execution_tx: Sender<ExecutionReport>, ) -> Result<(ExecutionEngine, Sender<ExecutionEvent>)>
Creates an execution engine with all configured exchanges
Auto Trait Implementations§
impl Freeze for ExchangeFactory
impl RefUnwindSafe for ExchangeFactory
impl Send for ExchangeFactory
impl Sync for ExchangeFactory
impl Unpin for ExchangeFactory
impl UnwindSafe for ExchangeFactory
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