Struct kiteconnect::ticker::KiteTicker [−][src]
pub struct KiteTicker { /* fields omitted */ }
Methods
impl KiteTicker
[src]
impl KiteTicker
Implments the apis exposed from KiteTicker struct
pub fn new(api_key: &str, access_token: &str) -> KiteTicker
[src]
pub fn new(api_key: &str, access_token: &str) -> KiteTicker
Constructor
pub fn connect<F>(&mut self, handler: F, uri: Option<&str>) -> Result<()> where
F: KiteTickerHandler + Send + 'static,
[src]
pub fn connect<F>(&mut self, handler: F, uri: Option<&str>) -> Result<()> where
F: KiteTickerHandler + Send + 'static,
Creates a websocket and delegates to it to child thread. Also sets the broadcaster so that other methods can easily send message on this socket
Auto Trait Implementations
impl Send for KiteTicker
impl Send for KiteTicker
impl Sync for KiteTicker
impl Sync for KiteTicker