pub struct CancelBroadcasterConfig {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 idempotent_success_patterns: Vec<String>,
}
Expand description
Configuration for the cancel broadcaster.
Fields§
§pool_size: usize
Number 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: bool
If 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: u64
Interval in seconds between health check pings.
health_check_timeout_secs: u64
Timeout in seconds for health check requests.
expected_reject_patterns: Vec<String>
Substrings to identify expected cancel rejections for debug-level logging.
idempotent_success_patterns: Vec<String>
Substrings to identify idempotent success (order already cancelled/not found).
Trait Implementations§
Source§impl Clone for CancelBroadcasterConfig
impl Clone for CancelBroadcasterConfig
Source§fn clone(&self) -> CancelBroadcasterConfig
fn clone(&self) -> CancelBroadcasterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CancelBroadcasterConfig
impl Debug for CancelBroadcasterConfig
Auto Trait Implementations§
impl Freeze for CancelBroadcasterConfig
impl RefUnwindSafe for CancelBroadcasterConfig
impl Send for CancelBroadcasterConfig
impl Sync for CancelBroadcasterConfig
impl Unpin for CancelBroadcasterConfig
impl UnwindSafe for CancelBroadcasterConfig
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