pub struct PingContext {
pub origin: PingOrigin,
pub response_threshold_ms: Option<u64>,
pub payload: Option<Value>,
pub health_metadata: HashMap<String, Value>,
pub connection_metrics: Option<ConnectionMetrics>,
}
Expand description
Context for ping/health monitoring requests
Fields§
§origin: PingOrigin
Ping origin (client or server)
response_threshold_ms: Option<u64>
Expected response time threshold in milliseconds
payload: Option<Value>
Custom ping payload
health_metadata: HashMap<String, Value>
Health check metadata
connection_metrics: Option<ConnectionMetrics>
Connection quality metrics
Trait Implementations§
Source§impl Clone for PingContext
impl Clone for PingContext
Source§fn clone(&self) -> PingContext
fn clone(&self) -> PingContext
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 PingContext
impl Debug for PingContext
Source§impl<'de> Deserialize<'de> for PingContext
impl<'de> Deserialize<'de> for PingContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PingContext
impl RefUnwindSafe for PingContext
impl Send for PingContext
impl Sync for PingContext
impl Unpin for PingContext
impl UnwindSafe for PingContext
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