pub struct GatewayMetrics {
pub ws_upgrades: CounterVec,
pub ws_active_sessions: GaugeVec,
pub policy_decisions: CounterVec,
pub handshake_rejections: CounterVec,
pub dispatch_duration: HistogramVec,
pub decode_errors: CounterVec,
pub service_errors: CounterVec,
pub writer_timeouts: CounterVec,
pub unknown_service_errors: CounterVec,
/* private fields */
}Fields§
§ws_upgrades: CounterVec§ws_active_sessions: GaugeVec§policy_decisions: CounterVec§handshake_rejections: CounterVec§dispatch_duration: HistogramVec§decode_errors: CounterVec§service_errors: CounterVec§writer_timeouts: CounterVec§unknown_service_errors: CounterVecImplementations§
Source§impl GatewayMetrics
impl GatewayMetrics
Sourcepub fn set_draining(&self)
pub fn set_draining(&self)
Mark draining state.
Sourcepub fn is_draining(&self) -> bool
pub fn is_draining(&self) -> bool
Return whether draining is active.
Trait Implementations§
Source§impl Default for GatewayMetrics
impl Default for GatewayMetrics
Source§fn default() -> GatewayMetrics
fn default() -> GatewayMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GatewayMetrics
impl !RefUnwindSafe for GatewayMetrics
impl Send for GatewayMetrics
impl Sync for GatewayMetrics
impl Unpin for GatewayMetrics
impl UnwindSafe for GatewayMetrics
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