pub struct Connection<'a> {
pub session: Option<&'a str>,
pub method: Option<&'a str>,
pub destination: Option<(&'a str, u16)>,
pub decision: &'a Decision,
pub latency_us: u64,
}Expand description
One connection decision.
Fields§
§session: Option<&'a str>The session whose credential the request carried (ADR-027). None for
a proxy without sessions, and for a request refused for its credential;
the recorder then uses its own session.
method: Option<&'a str>Request method (CONNECT, GET, …); None when the head was unreadable.
destination: Option<(&'a str, u16)>Destination host and port; None when the head was unreadable.
decision: &'a DecisionThe verdict and the rules behind it.
latency_us: u64Time from accepting the connection to this decision, in microseconds.
Trait Implementations§
Source§impl<'a> Clone for Connection<'a>
impl<'a> Clone for Connection<'a>
impl<'a> Copy for Connection<'a>
Auto Trait Implementations§
impl<'a> Freeze for Connection<'a>
impl<'a> RefUnwindSafe for Connection<'a>
impl<'a> Send for Connection<'a>
impl<'a> Sync for Connection<'a>
impl<'a> Unpin for Connection<'a>
impl<'a> UnsafeUnpin for Connection<'a>
impl<'a> UnwindSafe for Connection<'a>
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