pub struct EventsStatus {
pub connected: bool,
pub last_message_at: Option<String>,
pub reconnect_count: u64,
pub uptime_seconds: u64,
pub reset_epoch: u64,
pub topics_subscribed: Vec<String>,
pub buffer_sizes: BTreeMap<String, usize>,
}Expand description
Snapshot of the connector’s state, returned by GET /events/_status.
Fields§
§connected: booltrue if the underlying WS is currently connected.
last_message_at: Option<String>RFC 3339 timestamp of the last frame the connector received, if any.
reconnect_count: u64How many times the connector has reconnected since the process started. Bumps on every successful reconnect, not on each retry.
uptime_seconds: u64Wall-clock seconds since the connector task spawned.
reset_epoch: u64Current reset_epoch — bumps on each reconnect or process restart.
topics_subscribed: Vec<String>Topics currently subscribed at the upstream WS. Always includes
"orders" and "pnl"; market data topics appear when a client
has polled /events/marketdata?conid=… recently.
buffer_sizes: BTreeMap<String, usize>Per-topic ring buffer occupancy. Useful for “are we close to wraparound?” capacity planning.
Trait Implementations§
Source§impl Clone for EventsStatus
impl Clone for EventsStatus
Source§fn clone(&self) -> EventsStatus
fn clone(&self) -> EventsStatus
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 EventsStatus
impl Debug for EventsStatus
Source§impl Default for EventsStatus
impl Default for EventsStatus
Source§fn default() -> EventsStatus
fn default() -> EventsStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventsStatus
impl RefUnwindSafe for EventsStatus
impl Send for EventsStatus
impl Sync for EventsStatus
impl Unpin for EventsStatus
impl UnsafeUnpin for EventsStatus
impl UnwindSafe for EventsStatus
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>
§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,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
§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,
Add request id header and extension. Read more
§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,
Add request id header and extension, using
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,
Propgate request ids from requests to responses. Read more
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses, using
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,
Intercept requests with over-sized payloads and convert them into
413 Payload Too Large responses. Read more