Struct ib_tws_core::async_client::AsyncClient
source · pub struct AsyncClient { /* private fields */ }
Implementations
sourceimpl AsyncClient
impl AsyncClient
sourcepub async fn setup<T>(transport: T, client_id: i32) -> Result<Self, Error>where
T: RequestSink + ResponseStream + SpawnTask + Send + 'static,
<T as Sink<Request>>::Error: Send,
pub async fn setup<T>(transport: T, client_id: i32) -> Result<Self, Error>where
T: RequestSink + ResponseStream + SpawnTask + Send + 'static,
<T as Sink<Request>>::Error: Send,
Setup a new client with a specified transport.
pub async fn send(&self, request: Request) -> Result<i32, Error>
sourcepub fn response_rx(&self) -> Receiver<Response>
pub fn response_rx(&self) -> Receiver<Response>
Get a cloned receiver for the response channel.
pub async fn managed_accounts(&self) -> Vec<String>
pub fn next_valid_order_id(&self) -> i32
pub fn server_version(&self) -> i32
pub async fn request_account_summary(
&self,
message: ReqAccountSummary
) -> Result<impl Stream<Item = AccountSummaryMsg> + '_, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl !UnwindSafe for AsyncClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more