pub struct Config {
pub api_key: String,
pub endpoint: String,
pub reconnect: bool,
pub reconnect_delay_initial: Duration,
pub reconnect_delay_max: Duration,
pub ping_interval: Duration,
}Expand description
Configuration for K256 WebSocket client.
Fields§
§api_key: StringK256 API key
endpoint: StringWebSocket endpoint URL
reconnect: boolWhether to automatically reconnect
reconnect_delay_initial: DurationInitial reconnect delay
reconnect_delay_max: DurationMaximum reconnect delay
ping_interval: DurationPing interval (0 to disable)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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