pub struct EventAttribution { /* private fields */ }Expand description
Runtime-resolved event attribution derived from a sealed authorization token.
This value is the construction helper for event writes that must share a
larger SQL transaction and therefore cannot use crate::KhiveRuntime::events.
Its fields are private, so linked code can obtain one only from an already
authorized token and cannot select a different namespace or actor.
Implementations§
Source§impl EventAttribution
impl EventAttribution
Sourcepub fn from_token(token: &NamespaceToken) -> Self
pub fn from_token(token: &NamespaceToken) -> Self
Resolve the canonical namespace and actor stamp from token, capturing
the current operation for explicitly deferred transactional event work.
Trait Implementations§
Source§impl Clone for EventAttribution
impl Clone for EventAttribution
Source§impl Debug for EventAttribution
impl Debug for EventAttribution
impl Eq for EventAttribution
Source§impl PartialEq for EventAttribution
impl PartialEq for EventAttribution
impl StructuralPartialEq for EventAttribution
Auto Trait Implementations§
impl Freeze for EventAttribution
impl RefUnwindSafe for EventAttribution
impl Send for EventAttribution
impl Sync for EventAttribution
impl Unpin for EventAttribution
impl UnsafeUnpin for EventAttribution
impl UnwindSafe for EventAttribution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more