pub struct CallContext(/* private fields */);Expand description
The context of one call: the caller as the gate admitted them and the
reach it answered — or, in a child, the hop the call came through.
Cheap to clone. Built only by the dispatch (and the child seam), never by
hand; a method gets it with context(), to hand to work it spawns.
Implementations§
Source§impl CallContext
impl CallContext
Sourcepub fn auth(&self) -> Option<&AuthContext>
pub fn auth(&self) -> Option<&AuthContext>
The identity the gate admitted (in a child, the one the hop names, or
the one its forward policy derived); None for an anonymous call.
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Auto Trait Implementations§
impl !RefUnwindSafe for CallContext
impl !UnwindSafe for CallContext
impl Forget for CallContext
impl Freeze for CallContext
impl Move for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
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