pub struct AdmittedActorContext { /* private fields */ }Expand description
The immutable actor context admitted for deterministic command execution.
Implementations§
Source§impl AdmittedActorContext
impl AdmittedActorContext
Sourcepub const fn new(
principal_id: ActorId,
actor_kind: ActorKind,
tenant_scope: TenantScope,
agent_session_id: Option<AgentSessionId>,
) -> Self
pub const fn new( principal_id: ActorId, actor_kind: ActorKind, tenant_scope: TenantScope, agent_session_id: Option<AgentSessionId>, ) -> Self
Constructs an admitted context from already checked and authorized values.
Sourcepub const fn principal_id(&self) -> &ActorId
pub const fn principal_id(&self) -> &ActorId
Borrows the stable admitted principal identity.
Sourcepub const fn actor_kind(&self) -> ActorKind
pub const fn actor_kind(&self) -> ActorKind
Returns the trusted admitted actor kind.
Sourcepub const fn tenant_scope(&self) -> &TenantScope
pub const fn tenant_scope(&self) -> &TenantScope
Borrows the authorization-resolved tenant scope.
Sourcepub const fn agent_session_id(&self) -> Option<AgentSessionId>
pub const fn agent_session_id(&self) -> Option<AgentSessionId>
Returns the optional policy-admitted agent-session identity.
Trait Implementations§
Source§impl Clone for AdmittedActorContext
impl Clone for AdmittedActorContext
Source§impl Debug for AdmittedActorContext
impl Debug for AdmittedActorContext
impl Eq for AdmittedActorContext
Source§impl Hash for AdmittedActorContext
impl Hash for AdmittedActorContext
Source§impl Ord for AdmittedActorContext
impl Ord for AdmittedActorContext
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AdmittedActorContext
impl PartialEq for AdmittedActorContext
Source§impl PartialOrd for AdmittedActorContext
impl PartialOrd for AdmittedActorContext
impl StructuralPartialEq for AdmittedActorContext
Auto Trait Implementations§
impl Freeze for AdmittedActorContext
impl RefUnwindSafe for AdmittedActorContext
impl Send for AdmittedActorContext
impl Sync for AdmittedActorContext
impl Unpin for AdmittedActorContext
impl UnsafeUnpin for AdmittedActorContext
impl UnwindSafe for AdmittedActorContext
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