pub struct ConnectionMetadata {
pub connected_at: Instant,
pub remote_addr: Option<String>,
pub user_agent: Option<String>,
pub custom: HashMap<String, String>,
pub stats: ConnectionStats,
}
Expand description
Connection metadata for tracking and debugging
Fields§
§connected_at: Instant
When the connection was established
remote_addr: Option<String>
Remote address if available
user_agent: Option<String>
User agent if available
custom: HashMap<String, String>
Custom metadata
stats: ConnectionStats
Message statistics
Trait Implementations§
Source§impl Clone for ConnectionMetadata
impl Clone for ConnectionMetadata
Source§fn clone(&self) -> ConnectionMetadata
fn clone(&self) -> ConnectionMetadata
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 moreAuto Trait Implementations§
impl Freeze for ConnectionMetadata
impl RefUnwindSafe for ConnectionMetadata
impl Send for ConnectionMetadata
impl Sync for ConnectionMetadata
impl Unpin for ConnectionMetadata
impl UnwindSafe for ConnectionMetadata
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