pub struct CapToken(pub u128);Expand description
A capability id carried by an error or diagnostic.
The raw 128 bits stay in memory so the kernel can look the id up, but every formatting path prints a correlation id. An error log therefore cannot be replayed as authority (I-3, I-4, H2.18).
Tuple Fields§
§0: u128Implementations§
Source§impl CapToken
impl CapToken
Sourcepub fn correlation_id(self) -> String
pub fn correlation_id(self) -> String
Correlation id matching CapId::correlation_id for the same id.
Trait Implementations§
impl Copy for CapToken
impl Eq for CapToken
impl StructuralPartialEq for CapToken
Auto Trait Implementations§
impl Freeze for CapToken
impl RefUnwindSafe for CapToken
impl Send for CapToken
impl Sync for CapToken
impl Unpin for CapToken
impl UnsafeUnpin for CapToken
impl UnwindSafe for CapToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.