pub struct ConnectionInfo {
pub id: usize,
pub client_ip: Option<String>,
pub remote_addr: Option<String>,
pub remote_port: Option<u16>,
pub server_addr: Option<String>,
pub server_port: Option<u16>,
pub tls_version: Option<String>,
pub tls_cipher: Option<String>,
pub reused: bool,
}Expand description
Information about a single client connection.
Fields§
§id: usizeA unique identifier for the connection.
client_ip: Option<String>The IP address of the client.
remote_addr: Option<String>The remote address of the client connection.
remote_port: Option<u16>The remote port of the client connection.
server_addr: Option<String>The server address the client connected to.
server_port: Option<u16>The server port the client connected to.
tls_version: Option<String>The TLS version used for the connection, if any.
tls_cipher: Option<String>The TLS cipher used for the connection, if any.
reused: boolIndicates whether the connection was reused (e.g., HTTP keep-alive).
Trait Implementations§
Source§impl Default for ConnectionInfo
impl Default for ConnectionInfo
Source§fn default() -> ConnectionInfo
fn default() -> ConnectionInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnsafeUnpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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