pub struct SeriesSubscription { /* private fields */ }Expand description
Series 订阅
Implementations§
Source§impl SeriesSubscription
impl SeriesSubscription
Sourcepub async fn on_new_bar<F>(&self, handler: F)
pub async fn on_new_bar<F>(&self, handler: F)
注册新 K线回调
Sourcepub async fn on_bar_update<F>(&self, handler: F)
pub async fn on_bar_update<F>(&self, handler: F)
注册 K线更新回调
Sourcepub async fn data_stream(&self) -> impl Stream<Item = Arc<SeriesData>>
pub async fn data_stream(&self) -> impl Stream<Item = Arc<SeriesData>>
获取数据流
Auto Trait Implementations§
impl Freeze for SeriesSubscription
impl !RefUnwindSafe for SeriesSubscription
impl Send for SeriesSubscription
impl Sync for SeriesSubscription
impl Unpin for SeriesSubscription
impl !UnwindSafe for SeriesSubscription
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