pub struct NetAuditEvent {
pub ts_ms: u64,
pub host: String,
pub port: u16,
pub kind: NetKind,
pub decision: NetDecision,
pub bytes_up: u64,
pub bytes_down: u64,
pub dur_ms: u64,
}Expand description
Network egress audit surface (#124, ADR 0016): the loopback proxy records
every proxy-visible connection as a NetAuditEvent through an AuditSink
(default off; enable via the BRIDLE_NET_AUDIT setting). The bridle-netmon
binary renders the JSON-lines stream as a live monitor.
One audited egress connection through the proxy — a complete record of the
child’s proxy-visible network activity (#124, ADR 0016). Serialised as one
JSON line by JsonlSink; the bridle-netmon binary renders a live view.
Fields§
§ts_ms: u64Unix-epoch milliseconds when the connection was decided.
host: StringThe requested host (CONNECT authority or http:// URI host).
port: u16The requested port.
kind: NetKindTunnel (connect) or plaintext forward (http).
decision: NetDecisionAllow-list outcome.
bytes_up: u64Bytes the child sent (client → origin); 0 for a denied/errored conn.
bytes_down: u64Bytes the origin returned (origin → child).
dur_ms: u64Connection lifetime in milliseconds.
Trait Implementations§
Source§impl Clone for NetAuditEvent
impl Clone for NetAuditEvent
Source§fn clone(&self) -> NetAuditEvent
fn clone(&self) -> NetAuditEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NetAuditEvent
impl Debug for NetAuditEvent
Source§impl<'de> Deserialize<'de> for NetAuditEvent
impl<'de> Deserialize<'de> for NetAuditEvent
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>,
impl Eq for NetAuditEvent
Source§impl PartialEq for NetAuditEvent
impl PartialEq for NetAuditEvent
Source§fn eq(&self, other: &NetAuditEvent) -> bool
fn eq(&self, other: &NetAuditEvent) -> bool
self and other values to be equal, and is used by ==.