pub struct WsChannelConfig {
pub ticker_capacity: usize,
pub orderbook_capacity: usize,
pub trades_capacity: usize,
pub user_data_capacity: usize,
}Expand description
Configuration for WebSocket channel capacities.
Different data streams have different message frequencies:
- Trades are highest frequency, need larger buffers
- Tickers and user data are lower frequency
Fields§
§ticker_capacity: usizeChannel capacity for ticker streams (default: 256)
orderbook_capacity: usizeChannel capacity for orderbook streams (default: 512)
trades_capacity: usizeChannel capacity for trade streams (default: 1024)
user_data_capacity: usizeChannel capacity for user data streams (default: 256)
Trait Implementations§
Source§impl Clone for WsChannelConfig
impl Clone for WsChannelConfig
Source§fn clone(&self) -> WsChannelConfig
fn clone(&self) -> WsChannelConfig
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 moreSource§impl Debug for WsChannelConfig
impl Debug for WsChannelConfig
Auto Trait Implementations§
impl Freeze for WsChannelConfig
impl RefUnwindSafe for WsChannelConfig
impl Send for WsChannelConfig
impl Sync for WsChannelConfig
impl Unpin for WsChannelConfig
impl UnsafeUnpin for WsChannelConfig
impl UnwindSafe for WsChannelConfig
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