pub struct KiteTickerManagerBuilder { /* private fields */ }Expand description
Builder for KiteTickerManager providing a fluent API for configuration.
Implementations§
Source§impl KiteTickerManagerBuilder
impl KiteTickerManagerBuilder
Sourcepub fn new(api_key: impl Into<String>, access_token: impl Into<String>) -> Self
pub fn new(api_key: impl Into<String>, access_token: impl Into<String>) -> Self
Create a new builder with mandatory credentials and default config
pub fn max_connections(self, n: usize) -> Self
pub fn max_symbols_per_connection(self, n: usize) -> Self
pub fn connection_timeout(self, d: Duration) -> Self
pub fn health_check_interval(self, d: Duration) -> Self
pub fn reconnect_attempts(self, attempts: usize) -> Self
pub fn reconnect_delay(self, d: Duration) -> Self
pub fn enable_dedicated_parsers(self, enable: bool) -> Self
pub fn default_mode(self, mode: Mode) -> Self
pub fn heartbeat_liveness_threshold(self, d: Duration) -> Self
pub fn connection_buffer_size(self, sz: usize) -> Self
pub fn parser_buffer_size(self, sz: usize) -> Self
pub fn raw_only(self, raw: bool) -> Self
Sourcepub fn config(self, config: KiteManagerConfig) -> Self
pub fn config(self, config: KiteManagerConfig) -> Self
Override entire config (advanced)
Sourcepub fn build(self) -> KiteTickerManager
pub fn build(self) -> KiteTickerManager
Build the manager (not started yet)
Trait Implementations§
Source§impl Clone for KiteTickerManagerBuilder
impl Clone for KiteTickerManagerBuilder
Source§fn clone(&self) -> KiteTickerManagerBuilder
fn clone(&self) -> KiteTickerManagerBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KiteTickerManagerBuilder
impl RefUnwindSafe for KiteTickerManagerBuilder
impl Send for KiteTickerManagerBuilder
impl Sync for KiteTickerManagerBuilder
impl Unpin for KiteTickerManagerBuilder
impl UnwindSafe for KiteTickerManagerBuilder
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