Struct AuthorizedEgress
pub struct AuthorizedEgress { /* private fields */ }Expand description
A policy-approved request with pinned addresses and a held connection slot.
A trusted host adapter may open exactly one connection from this token and must retain it for that connection’s lifetime. The type deliberately does not expose a convenience dial method that could open several connections against one budget lease.
Implementations§
Source§impl AuthorizedEgress
impl AuthorizedEgress
Sourcepub fn request(&self) -> &EgressRequest
pub fn request(&self) -> &EgressRequest
Original canonical request.
Sourcepub fn destination(&self) -> &ResolvedDestination
pub fn destination(&self) -> &ResolvedDestination
Exact validated destination. Adapters must not resolve its host again;
use ResolvedDestination::host for SNI and certificate verification
and ResolvedDestination::addresses for the connect.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizedEgress
impl RefUnwindSafe for AuthorizedEgress
impl Send for AuthorizedEgress
impl Sync for AuthorizedEgress
impl Unpin for AuthorizedEgress
impl UnsafeUnpin for AuthorizedEgress
impl UnwindSafe for AuthorizedEgress
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