pub struct SubIdGen(/* private fields */);Expand description
Hands out subscription ids of one connector, in increasing order, from a thread-safe counter.
The market data connector counts from 1, the user data connector from 1001, so the ids of the two connectors of one bot do not collide.
Implementations§
Auto Trait Implementations§
impl !Freeze for SubIdGen
impl RefUnwindSafe for SubIdGen
impl Send for SubIdGen
impl Sync for SubIdGen
impl Unpin for SubIdGen
impl UnsafeUnpin for SubIdGen
impl UnwindSafe for SubIdGen
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