pub struct ConnectionRequest {
pub host: PeekedHost,
pub pid: Option<u32>,
}Expand description
The per-connection context handed to the PDP: who is asking, and for what.
pid lets the PDP fuse the egress attempt with the syscall-correlation window
(PRODUCT.md B.6: “this PID openat’d a credential file 200ms ago”).
Fields§
§host: PeekedHostResolved destination identity (SNI / requested host / address).
pid: Option<u32>Originating process id of the agent connection, when obtainable
(SO_PEERCRED on Linux, LOCAL_PEERPID on macOS).
Trait Implementations§
Source§impl Clone for ConnectionRequest
impl Clone for ConnectionRequest
Source§fn clone(&self) -> ConnectionRequest
fn clone(&self) -> ConnectionRequest
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 ConnectionRequest
impl RefUnwindSafe for ConnectionRequest
impl Send for ConnectionRequest
impl Sync for ConnectionRequest
impl Unpin for ConnectionRequest
impl UnsafeUnpin for ConnectionRequest
impl UnwindSafe for ConnectionRequest
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