pub struct ExchangeClient { /* private fields */ }Expand description
Client for managing connection to a specific exchange
Implementations§
Source§impl ExchangeClient
impl ExchangeClient
Sourcepub async fn disconnect(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
Disconnect from the exchange
Sourcepub async fn start_collection(
&mut self,
symbols: Vec<SmartString>,
data_types: Vec<DataType>,
event_sender: Sender<MarketDataEvent>,
) -> Result<()>
pub async fn start_collection( &mut self, symbols: Vec<SmartString>, data_types: Vec<DataType>, event_sender: Sender<MarketDataEvent>, ) -> Result<()>
Start collecting data for specific symbols and data types
Sourcepub async fn get_status(&self) -> Option<CollectionStatus>
pub async fn get_status(&self) -> Option<CollectionStatus>
Get current collection status
Auto Trait Implementations§
impl Freeze for ExchangeClient
impl !RefUnwindSafe for ExchangeClient
impl Send for ExchangeClient
impl Sync for ExchangeClient
impl Unpin for ExchangeClient
impl !UnwindSafe for ExchangeClient
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