pub struct ConnectionProfile {
pub connection_id: ConnectionId,
pub fingerprint: SystemFingerprint,
pub baseline: PerformanceBaseline,
pub error_history: Vec<ErrorRecord>,
pub capabilities: HashMap<String, String>,
pub first_seen: DateTime<Utc>,
pub last_updated: DateTime<Utc>,
pub connection_count: u64,
}Expand description
Accumulated knowledge about a remote system.
Fields§
§connection_id: ConnectionId§fingerprint: SystemFingerprint§baseline: PerformanceBaseline§error_history: Vec<ErrorRecord>§capabilities: HashMap<String, String>§first_seen: DateTime<Utc>§last_updated: DateTime<Utc>§connection_count: u64Implementations§
Source§impl ConnectionProfile
impl ConnectionProfile
pub fn new(connection_id: ConnectionId) -> Self
pub fn record_latency(&mut self, latency_ms: f64)
pub fn record_error( &mut self, error_type: &str, message: &str, status: Option<u16>, )
Trait Implementations§
Source§impl Clone for ConnectionProfile
impl Clone for ConnectionProfile
Source§fn clone(&self) -> ConnectionProfile
fn clone(&self) -> ConnectionProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionProfile
impl Debug for ConnectionProfile
Source§impl<'de> Deserialize<'de> for ConnectionProfile
impl<'de> Deserialize<'de> for ConnectionProfile
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 ConnectionProfile
impl RefUnwindSafe for ConnectionProfile
impl Send for ConnectionProfile
impl Sync for ConnectionProfile
impl Unpin for ConnectionProfile
impl UnsafeUnpin for ConnectionProfile
impl UnwindSafe for ConnectionProfile
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