pub struct MultiApiKiteTickerManagerBuilder { /* private fields */ }Expand description
Builder for MultiApiKiteTickerManager providing a fluent API for configuration.
Implementations§
Source§impl MultiApiKiteTickerManagerBuilder
impl MultiApiKiteTickerManagerBuilder
Sourcepub fn add_api_key(
self,
id: impl Into<ApiKeyId>,
api_key: impl Into<String>,
access_token: impl Into<String>,
) -> Self
pub fn add_api_key( self, id: impl Into<ApiKeyId>, api_key: impl Into<String>, access_token: impl Into<String>, ) -> Self
Add an API key with credentials
Sourcepub fn max_connections_per_api(self, n: usize) -> Self
pub fn max_connections_per_api(self, n: usize) -> Self
Set maximum connections per API key (default: 3)
Sourcepub fn distribution_strategy(self, strategy: DistributionStrategy) -> Self
pub fn distribution_strategy(self, strategy: DistributionStrategy) -> Self
Set symbol distribution strategy
Sourcepub fn base_config(self, config: KiteManagerConfig) -> Self
pub fn base_config(self, config: KiteManagerConfig) -> Self
Set base configuration for connections
Sourcepub fn max_symbols_per_connection(self, n: usize) -> Self
pub fn max_symbols_per_connection(self, n: usize) -> Self
Set maximum symbols per connection
Sourcepub fn connection_timeout(self, d: Duration) -> Self
pub fn connection_timeout(self, d: Duration) -> Self
Set connection timeout
Sourcepub fn health_check_interval(self, d: Duration) -> Self
pub fn health_check_interval(self, d: Duration) -> Self
Set health check interval
Sourcepub fn enable_health_monitoring(self, enable: bool) -> Self
pub fn enable_health_monitoring(self, enable: bool) -> Self
Enable or disable health monitoring
Sourcepub fn default_mode(self, mode: Mode) -> Self
pub fn default_mode(self, mode: Mode) -> Self
Set default subscription mode
Sourcepub fn build(self) -> MultiApiKiteTickerManager
pub fn build(self) -> MultiApiKiteTickerManager
Build the multi-API manager
Trait Implementations§
Source§impl Clone for MultiApiKiteTickerManagerBuilder
impl Clone for MultiApiKiteTickerManagerBuilder
Source§fn clone(&self) -> MultiApiKiteTickerManagerBuilder
fn clone(&self) -> MultiApiKiteTickerManagerBuilder
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 MultiApiKiteTickerManagerBuilder
impl RefUnwindSafe for MultiApiKiteTickerManagerBuilder
impl Send for MultiApiKiteTickerManagerBuilder
impl Sync for MultiApiKiteTickerManagerBuilder
impl Unpin for MultiApiKiteTickerManagerBuilder
impl UnwindSafe for MultiApiKiteTickerManagerBuilder
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