pub struct Fingerprint { /* private fields */ }Expand description
PERF-15: everything Gate::held_on reads of one signed-in caller,
besides the grants generation — what its principal holds (each
membership’s role and scope, as a set) and its session’s ceiling layers.
Two callers with equal fingerprints hold the same grants on the same
scopes, whoever they are: at one generation the gate answers them alike.
So a service keeps what a caller may see (its view, AUTH-4) by it —
one entry shared by every caller holding the same, dropped when the
generation moves. Compared whole, never by a digest: two fingerprints are
one key only when they are equal. Gate::fingerprint takes one,
Gate::held_on_by answers from it.
Trait Implementations§
Source§impl Clone for Fingerprint
impl Clone for Fingerprint
Source§impl Debug for Fingerprint
impl Debug for Fingerprint
impl Eq for Fingerprint
Source§impl Hash for Fingerprint
impl Hash for Fingerprint
Source§impl PartialEq for Fingerprint
impl PartialEq for Fingerprint
impl StructuralPartialEq for Fingerprint
Auto Trait Implementations§
impl Forget for Fingerprint
impl Freeze for Fingerprint
impl Move for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Send for Fingerprint
impl Sync for Fingerprint
impl Unpin for Fingerprint
impl UnsafeUnpin for Fingerprint
impl UnwindSafe for Fingerprint
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