struct PrintHandler;Expand description
PrintHandler — text format (default & –output table).
Trait Implementations§
Source§impl QuoteHandler for PrintHandler
impl QuoteHandler for PrintHandler
Source§fn on_basic_qot_update<'life0, 'async_trait>(
&'life0 self,
qot_list: Vec<BasicQot>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_basic_qot_update<'life0, 'async_trait>(
&'life0 self,
qot_list: Vec<BasicQot>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
基本行情更新推送
Source§fn on_kl_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
kl_list: Vec<KLine>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_kl_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
kl_list: Vec<KLine>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
K 线更新推送
Source§fn on_order_book_update<'life0, 'async_trait>(
&'life0 self,
data: OrderBookData,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_order_book_update<'life0, 'async_trait>(
&'life0 self,
data: OrderBookData,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
摆盘更新推送
Source§fn on_ticker_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
ticker_list: Vec<Ticker>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_ticker_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
ticker_list: Vec<Ticker>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
逐笔更新推送
Source§fn on_rt_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
rt_list: Vec<TimeShare>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_rt_update<'life0, 'async_trait>(
&'life0 self,
security: Security,
rt_list: Vec<TimeShare>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
分时更新推送
Auto Trait Implementations§
impl Freeze for PrintHandler
impl RefUnwindSafe for PrintHandler
impl Send for PrintHandler
impl Sync for PrintHandler
impl Unpin for PrintHandler
impl UnsafeUnpin for PrintHandler
impl UnwindSafe for PrintHandler
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