pub struct HealthStatus { /* private fields */ }Expand description
Health information from the Fynd RPC server’s /v1/health endpoint.
Implementations§
Source§impl HealthStatus
impl HealthStatus
Sourcepub fn healthy(&self) -> bool
pub fn healthy(&self) -> bool
true when the server has up-to-date market data and active solver pools.
Sourcepub fn last_update_ms(&self) -> u64
pub fn last_update_ms(&self) -> u64
Milliseconds since the last market-data update. High values indicate stale data.
Sourcepub fn num_solver_pools(&self) -> usize
pub fn num_solver_pools(&self) -> usize
Number of active solver pool workers. Use this to set QuoteOptions::with_min_responses.
Sourcepub fn derived_data_ready(&self) -> bool
pub fn derived_data_ready(&self) -> bool
Whether derived data has been computed at least once.
This indicates overall readiness, not per-block freshness. Some algorithms require fresh derived data for each block — they are ready to receive orders but will wait for recomputation before solving.
Sourcepub fn gas_price_age_ms(&self) -> Option<u64>
pub fn gas_price_age_ms(&self) -> Option<u64>
Time since last gas price update in milliseconds, if available.
Trait Implementations§
Source§impl Debug for HealthStatus
impl Debug for HealthStatus
Source§impl From<HealthStatus> for HealthStatus
impl From<HealthStatus> for HealthStatus
Source§fn from(dh: HealthStatus) -> Self
fn from(dh: HealthStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnsafeUnpin for HealthStatus
impl UnwindSafe for HealthStatus
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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