pub struct ConnectionEvent {Show 20 fields
pub timestamp: OffsetDateTime,
pub duration_ms: u64,
pub conn_id: u64,
pub peer_ip: IpAddr,
pub peer_port: u16,
pub user_id: String,
pub auth_result: AuthResult,
pub target_type: TargetType,
pub target_host: String,
pub target_port: u16,
pub sni: String,
pub bytes_sent: u64,
pub bytes_recv: u64,
pub packets_sent: u64,
pub packets_recv: u64,
pub protocol: Protocol,
pub transport: Transport,
pub close_reason: CloseReason,
pub is_fallback: bool,
pub server_id: String,
}Expand description
A connection event representing the full lifecycle of a single connection.
Fields§
§timestamp: OffsetDateTimeConnection start time (UTC).
duration_ms: u64Connection duration in milliseconds.
conn_id: u64Connection ID (unique within server instance).
peer_ip: IpAddrClient IP address.
peer_port: u16Client port.
user_id: StringUser identifier (password hash prefix or custom ID).
auth_result: AuthResultAuthentication result.
target_type: TargetTypeTarget address type.
target_host: StringTarget host (IP or domain).
target_port: u16Target port.
sni: StringSNI (Server Name Indication), if available.
bytes_sent: u64Bytes sent (client → server → target).
bytes_recv: u64Bytes received (target → server → client).
packets_sent: u64Packets sent (UDP only).
packets_recv: u64Packets received (UDP only).
protocol: ProtocolProtocol type.
transport: TransportTransport layer.
close_reason: CloseReasonConnection close reason.
is_fallback: boolWhether this was a fallback connection.
server_id: StringServer instance ID.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Source§fn clone(&self) -> ConnectionEvent
fn clone(&self) -> ConnectionEvent
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 moreSource§impl Debug for ConnectionEvent
impl Debug for ConnectionEvent
Source§impl<'de> Deserialize<'de> for ConnectionEvent
impl<'de> Deserialize<'de> for ConnectionEvent
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
Source§impl Row for ConnectionEvent
impl Row for ConnectionEvent
const COLUMN_NAMES: &'static [&'static str]
Auto Trait Implementations§
impl Freeze for ConnectionEvent
impl RefUnwindSafe for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
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