pub struct ProxyEvent {
pub timestamp: SystemTime,
pub component: String,
pub protocol: Protocol,
pub command: String,
pub full_command: String,
pub response: String,
pub response_detail: String,
pub latency: Duration,
pub process: Option<String>,
pub src: Option<String>,
pub dest: Option<String>,
pub system: bool,
}Expand description
A single request→response event (merged)
Fields§
§timestamp: SystemTime§component: String§protocol: Protocol§command: StringThe command/SQL sent (request summary, truncated for display)
full_command: StringFull command extracted from raw request (no truncation)
response: StringResponse summary (e.g. “OK”, “ResultSet (19 rows, …)”)
response_detail: StringFormatted response detail for the detail panel
latency: DurationRequest→response latency
process: Option<String>Process that initiated the connection (PID + name)
src: Option<String>Client address (source)
dest: Option<String>Remote address (destination)
system: boolWhether this is a system event (error/warning surfaced to TUI)
Implementations§
Source§impl ProxyEvent
impl ProxyEvent
Sourcepub fn system_event(component: &str, message: String) -> Self
pub fn system_event(component: &str, message: String) -> Self
Create a system event (error/warning) for display in the events panel
Trait Implementations§
Source§impl Clone for ProxyEvent
impl Clone for ProxyEvent
Source§fn clone(&self) -> ProxyEvent
fn clone(&self) -> ProxyEvent
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 moreAuto Trait Implementations§
impl Freeze for ProxyEvent
impl RefUnwindSafe for ProxyEvent
impl Send for ProxyEvent
impl Sync for ProxyEvent
impl Unpin for ProxyEvent
impl UnsafeUnpin for ProxyEvent
impl UnwindSafe for ProxyEvent
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