pub struct DisplayGroupSubscription { /* private fields */ }Expand description
A subscription to display group events with the ability to update the displayed contract.
Created by Client::subscribe_to_group_events.
Derefs to Subscription<DisplayGroupUpdate> for next(), cancel(), etc.
Implementations§
Source§impl DisplayGroupSubscription
impl DisplayGroupSubscription
Sourcepub async fn update(&self, contract_info: &str) -> Result<(), Error>
pub async fn update(&self, contract_info: &str) -> Result<(), Error>
Updates the contract displayed in the TWS display group.
§Arguments
contract_info- Contract to display:"contractID@exchange"for individual contracts (e.g., “265598@SMART”)"none"for empty selection"combo"for combination contracts
Methods from Deref<Target = Subscription<DisplayGroupUpdate>>§
Trait Implementations§
Source§impl Deref for DisplayGroupSubscription
impl Deref for DisplayGroupSubscription
Source§type Target = Subscription<DisplayGroupUpdate>
type Target = Subscription<DisplayGroupUpdate>
The resulting type after dereferencing.
Auto Trait Implementations§
impl Freeze for DisplayGroupSubscription
impl !RefUnwindSafe for DisplayGroupSubscription
impl Send for DisplayGroupSubscription
impl Sync for DisplayGroupSubscription
impl Unpin for DisplayGroupSubscription
impl UnsafeUnpin for DisplayGroupSubscription
impl !UnwindSafe for DisplayGroupSubscription
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