pub struct ConnectionInfo {
pub id: String,
pub state: ConnectionState,
pub established_at: Instant,
pub last_health_check: Option<Instant>,
pub failed_health_checks: usize,
pub successful_requests: usize,
pub failed_requests: usize,
}Expand description
Information about a managed connection
Fields§
§id: StringUnique identifier for this connection
state: ConnectionStateCurrent state of the connection
established_at: InstantWhen the connection was established
last_health_check: Option<Instant>Last successful health check
failed_health_checks: usizeNumber of failed health checks
successful_requests: usizeNumber of successful requests
failed_requests: usizeNumber of failed requests
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)