pub struct SubmitBroadcasterConfig {Show 16 fields
pub pool_size: usize,
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub base_url: Option<String>,
pub testnet: bool,
pub timeout_secs: Option<u64>,
pub max_retries: Option<u32>,
pub retry_delay_ms: Option<u64>,
pub retry_delay_max_ms: Option<u64>,
pub recv_window_ms: Option<u64>,
pub max_requests_per_second: Option<u32>,
pub max_requests_per_minute: Option<u32>,
pub health_check_interval_secs: u64,
pub health_check_timeout_secs: u64,
pub expected_reject_patterns: Vec<String>,
pub proxy_urls: Vec<Option<String>>,
}Expand description
Configuration for the submit broadcaster.
Fields§
§pool_size: usizeNumber of HTTP clients in the pool.
api_key: Option<String>BitMEX API key (None will source from environment).
api_secret: Option<String>BitMEX API secret (None will source from environment).
base_url: Option<String>Base URL for BitMEX HTTP API.
testnet: boolIf connecting to BitMEX testnet.
timeout_secs: Option<u64>Timeout in seconds for HTTP requests.
max_retries: Option<u32>Maximum number of retry attempts for failed requests.
retry_delay_ms: Option<u64>Initial delay in milliseconds between retry attempts.
retry_delay_max_ms: Option<u64>Maximum delay in milliseconds between retry attempts.
recv_window_ms: Option<u64>Expiration window in milliseconds for signed requests.
max_requests_per_second: Option<u32>Maximum REST burst rate (requests per second).
max_requests_per_minute: Option<u32>Maximum REST rolling rate (requests per minute).
health_check_interval_secs: u64Interval in seconds between health check pings.
health_check_timeout_secs: u64Timeout in seconds for health check requests.
expected_reject_patterns: Vec<String>Substrings to identify expected submit rejections for debug-level logging.
proxy_urls: Vec<Option<String>>Optional list of proxy URLs for path diversity.
Each transport instance uses the proxy at its index. If the list is shorter than pool_size, remaining transports will use no proxy. If longer, extra proxies are ignored.
Trait Implementations§
Source§impl Clone for SubmitBroadcasterConfig
impl Clone for SubmitBroadcasterConfig
Source§fn clone(&self) -> SubmitBroadcasterConfig
fn clone(&self) -> SubmitBroadcasterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubmitBroadcasterConfig
impl Debug for SubmitBroadcasterConfig
Auto Trait Implementations§
impl Freeze for SubmitBroadcasterConfig
impl RefUnwindSafe for SubmitBroadcasterConfig
impl Send for SubmitBroadcasterConfig
impl Sync for SubmitBroadcasterConfig
impl Unpin for SubmitBroadcasterConfig
impl UnwindSafe for SubmitBroadcasterConfig
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
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>
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>
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