pub struct ConnectorCfg {Show 13 fields
pub orders_capacity: usize,
pub pnl_capacity: usize,
pub marketdata_capacity: usize,
pub backoff_min: Duration,
pub backoff_max: Duration,
pub heartbeat_timeout: Duration,
pub marketdata_idle_unsubscribe: Duration,
pub event_log: Option<Arc<EventLog>>,
pub retention: RetentionPolicy,
pub prune_every: Duration,
pub resubscribe_min: Duration,
pub resubscribe_max: Duration,
pub session_check_every: Duration,
}Expand description
Configurable knobs for the connector.
Fields§
§orders_capacity: usizeCapacity of the orders ring.
pnl_capacity: usizeCapacity of the pnl ring.
marketdata_capacity: usizePer-conid market-data ring capacity.
backoff_min: DurationMin reconnect backoff.
backoff_max: DurationMax reconnect backoff.
heartbeat_timeout: DurationIf no frame arrives in this long, the connector tears the socket down and reconnects (assumes the socket is dead, not idle).
marketdata_idle_unsubscribe: DurationIdle market-data subs auto-unsubscribe after this long with no
ensure_market_data call (P2 — currently unused, plumbed for
forward compatibility).
event_log: Option<Arc<EventLog>>Optional sqlite-backed historical event log. When set, every
pushed event is also appended here so /events/{topic}/history
can serve reads beyond ring capacity.
retention: RetentionPolicyRetention policy used by the periodic prune task.
prune_every: DurationHow often to run the prune task. Defaults to once per hour.
resubscribe_min: DurationFirst retry delay after CPAPI refuses a standing subscription.
resubscribe_max: DurationRetry delay ceiling. A sor+{} every five minutes is a harmless ask
of a Gateway that keeps saying no; the fund’s confirmer no longer
depends on it, but a healthy stream is still the fast path.
session_check_every: DurationHow often to ask /tickle whether the Gateway session the socket
was opened under is still the current one.
Trait Implementations§
Source§impl Clone for ConnectorCfg
impl Clone for ConnectorCfg
Source§fn clone(&self) -> ConnectorCfg
fn clone(&self) -> ConnectorCfg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorCfg
impl Debug for ConnectorCfg
Auto Trait Implementations§
impl Freeze for ConnectorCfg
impl RefUnwindSafe for ConnectorCfg
impl Send for ConnectorCfg
impl Sync for ConnectorCfg
impl Unpin for ConnectorCfg
impl UnsafeUnpin for ConnectorCfg
impl UnwindSafe for ConnectorCfg
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>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
x-request-id as the header name. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
413 Payload Too Large responses. Read more