pub struct Caller { /* private fields */ }Expand description
A caller the gate admitted: its principal, its identity, and the reach the gate answered for the call.
Implementations§
Source§impl Caller
impl Caller
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
Its name — the agent it signed in as (builder), else the name its
identity carries, else its principal: what a write says by.
Sourcepub fn context(&self) -> &AuthContext
pub fn context(&self) -> &AuthContext
The identity the gate admitted — what the gate is asked of again.
Sourcepub fn expires_at(&self) -> Option<i64>
pub fn expires_at(&self) -> Option<i64>
When its sign-in expires (unix seconds), if it says.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Caller
impl !UnwindSafe for Caller
impl Forget for Caller
impl Freeze for Caller
impl Move for Caller
impl Send for Caller
impl Sync for Caller
impl Unpin for Caller
impl UnsafeUnpin for Caller
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