pub struct AuthenticationStats {
pub exchange_name: SmartString,
pub last_authentication: Option<Duration>,
pub rest_cache_valid: bool,
pub websocket_cache_valid: bool,
pub cache_validity_duration: Duration,
pub supports_websocket_trading: bool,
pub requires_refresh: bool,
}Expand description
Authentication statistics for monitoring
Fields§
§exchange_name: SmartStringExchange name
last_authentication: Option<Duration>Time since last authentication
rest_cache_valid: boolWhether REST cache is valid
websocket_cache_valid: boolWhether WebSocket cache is valid
cache_validity_duration: DurationCache validity duration
supports_websocket_trading: boolWhether the exchange supports WebSocket trading
requires_refresh: boolWhether authentication requires periodic refresh
Implementations§
Source§impl AuthenticationStats
impl AuthenticationStats
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if authentication health is good
Sourcepub fn health_status(&self) -> SmartString
pub fn health_status(&self) -> SmartString
Get health status message
Trait Implementations§
Source§impl Clone for AuthenticationStats
impl Clone for AuthenticationStats
Source§fn clone(&self) -> AuthenticationStats
fn clone(&self) -> AuthenticationStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthenticationStats
impl RefUnwindSafe for AuthenticationStats
impl Send for AuthenticationStats
impl Sync for AuthenticationStats
impl Unpin for AuthenticationStats
impl UnwindSafe for AuthenticationStats
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