pub struct AuthContext<'a> {
pub principal: &'a dyn AuthPrincipal,
pub transport: TransportId,
}Expand description
Authentication context handed to a SecurityPolicy during evaluation.
Carries the authenticated principal and the transport that carried the
request. The AuthContext principal is the authentication identity; a
policy’s Granted { principal } value is advisory only.
Fields§
§principal: &'a dyn AuthPrincipal§transport: TransportIdAuto Trait Implementations§
impl<'a> !RefUnwindSafe for AuthContext<'a>
impl<'a> !UnwindSafe for AuthContext<'a>
impl<'a> Freeze for AuthContext<'a>
impl<'a> Send for AuthContext<'a>
impl<'a> Sync for AuthContext<'a>
impl<'a> Unpin for AuthContext<'a>
impl<'a> UnsafeUnpin for AuthContext<'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