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§impl Serialize for NetAuditEvent
impl Serialize for NetAuditEvent
impl StructuralPartialEq for NetAuditEvent
Auto Trait Implementations§
impl Freeze for NetAuditEvent
impl RefUnwindSafe for NetAuditEvent
impl Send for NetAuditEvent
impl Sync for NetAuditEvent
impl Unpin for NetAuditEvent
impl UnsafeUnpin for NetAuditEvent
impl UnwindSafe for NetAuditEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.