pub struct ConnectionObservation {
pub reuse: ConnectionReuse,
pub instance_id: String,
pub age_bucket: AgeBucket,
pub use_count: u64,
pub multiplex: Multiplex,
pub key_digest: String,
pub eviction: Option<EvictionReason>,
}Expand description
The connection an exchange used (spec 020, 3.5): fresh or reused, a nonsecret instance id, its age bucket and use count, the multiplex posture, the isolation-key digest, and why it left the pool after this exchange, if it did.
Fields§
§reuse: ConnectionReuse§instance_id: String§age_bucket: AgeBucket§use_count: u64§multiplex: Multiplex§key_digest: String§eviction: Option<EvictionReason>Trait Implementations§
Source§impl Clone for ConnectionObservation
impl Clone for ConnectionObservation
Source§impl Debug for ConnectionObservation
impl Debug for ConnectionObservation
Source§impl<'de> Deserialize<'de> for ConnectionObservation
impl<'de> Deserialize<'de> for ConnectionObservation
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
impl Eq for ConnectionObservation
Source§impl JsonSchema for ConnectionObservation
impl JsonSchema for ConnectionObservation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConnectionObservation
impl PartialEq for ConnectionObservation
Source§impl Serialize for ConnectionObservation
impl Serialize for ConnectionObservation
impl StructuralPartialEq for ConnectionObservation
Auto Trait Implementations§
impl Freeze for ConnectionObservation
impl RefUnwindSafe for ConnectionObservation
impl Send for ConnectionObservation
impl Sync for ConnectionObservation
impl Unpin for ConnectionObservation
impl UnsafeUnpin for ConnectionObservation
impl UnwindSafe for ConnectionObservation
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