pub struct PrincipalContext<'a> { /* private fields */ }Expand description
Sealed, non-content request context supplied to PrincipalResolver.
It cannot carry provider credentials, raw headers, a body, URL/query data, or a caller continuity identifier. Fields and construction stay inside the proxy runtime.
ⓘ
use gaze_proxy::{ListenerScope, PeerScope, PrincipalContext};
let _ = PrincipalContext {
listener_scope: ListenerScope::Loopback,
peer_scope: PeerScope::Loopback,
};Implementations§
Source§impl<'a> PrincipalContext<'a>
impl<'a> PrincipalContext<'a>
pub const fn listener_scope(&self) -> ListenerScope
pub const fn peer_scope(&self) -> PeerScope
pub fn tls_client_certificate_hash( &self, ) -> Option<TlsClientCertificateHash<'a>>
pub fn local_auth_credential(&self) -> Option<LocalAuthCredential<'a>>
Auto Trait Implementations§
impl<'a> Freeze for PrincipalContext<'a>
impl<'a> RefUnwindSafe for PrincipalContext<'a>
impl<'a> Send for PrincipalContext<'a>
impl<'a> Sync for PrincipalContext<'a>
impl<'a> Unpin for PrincipalContext<'a>
impl<'a> UnsafeUnpin for PrincipalContext<'a>
impl<'a> UnwindSafe for PrincipalContext<'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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more