pub struct BetfairStreamConfig {
pub host: String,
pub port: u16,
pub heartbeat_ms: u64,
pub idle_timeout_ms: u64,
pub reconnect_delay_initial_ms: u64,
pub reconnect_delay_max_ms: u64,
/* private fields */
}Expand description
Configuration for the Betfair Exchange Stream API client.
Fields§
§host: StringStream host (default: stream-api.betfair.com).
port: u16Stream TLS port (default: 443).
heartbeat_ms: u64Interval between client heartbeat messages in milliseconds (default: 5 000).
idle_timeout_ms: u64Idle read timeout in milliseconds; triggers reconnection if no data arrives (default: 60 000).
reconnect_delay_initial_ms: u64Initial reconnection back-off delay in milliseconds (default: 2 000).
reconnect_delay_max_ms: u64Maximum reconnection back-off delay in milliseconds (default: 30 000).
Trait Implementations§
Source§impl Clone for BetfairStreamConfig
impl Clone for BetfairStreamConfig
Source§fn clone(&self) -> BetfairStreamConfig
fn clone(&self) -> BetfairStreamConfig
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 BetfairStreamConfig
impl Debug for BetfairStreamConfig
Auto Trait Implementations§
impl Freeze for BetfairStreamConfig
impl RefUnwindSafe for BetfairStreamConfig
impl Send for BetfairStreamConfig
impl Sync for BetfairStreamConfig
impl Unpin for BetfairStreamConfig
impl UnsafeUnpin for BetfairStreamConfig
impl UnwindSafe for BetfairStreamConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more