pub struct AuthorityOwner { /* private fields */ }Expand description
Single owner of verified grants, contacts and permits for this process.
Implementations§
Source§impl AuthorityOwner
impl AuthorityOwner
Sourcepub fn retire_revoked(
&mut self,
handle: MutationHandle,
) -> Result<(), QdnfError>
pub fn retire_revoked( &mut self, handle: MutationHandle, ) -> Result<(), QdnfError>
Reclaim only this exact already-revoked record after dependent uses drain. The host must end all uses first. This does not drain sessions or async IO. A copied ExecutionPermit remains a historical snapshot: consumers MUST obtain current issuance from the concrete owner before any later effect.
Source§impl AuthorityOwner
impl AuthorityOwner
Sourcepub fn install_grant(
&mut self,
binding: AuthorityBinding,
now_unix: u64,
expires_unix: u64,
contact: ContactState,
) -> Result<(VerifiedCredential, AuthorisedContact, MutationHandle), QdnfError>
pub fn install_grant( &mut self, binding: AuthorityBinding, now_unix: u64, expires_unix: u64, contact: ContactState, ) -> Result<(VerifiedCredential, AuthorisedContact, MutationHandle), QdnfError>
Compatibility admission with an unlimited per-permit resource ceiling.
Scope and operation remain pinned. New bounded hosts should use
install_grant_with_ceiling; neither route is a consumable budget ledger.
Sourcepub fn install_grant_with_ceiling(
&mut self,
binding: AuthorityBinding,
now_unix: u64,
expires_unix: u64,
contact: ContactState,
resource_ceiling: u64,
) -> Result<(VerifiedCredential, AuthorisedContact, MutationHandle), QdnfError>
pub fn install_grant_with_ceiling( &mut self, binding: AuthorityBinding, now_unix: u64, expires_unix: u64, contact: ContactState, resource_ceiling: u64, ) -> Result<(VerifiedCredential, AuthorisedContact, MutationHandle), QdnfError>
Pin the exact admitted binding, validity start and per-permit ceiling. This trusted host entry point does not verify human consent by itself.
Sourcepub fn revoke(&mut self, handle: MutationHandle) -> Result<(), QdnfError>
pub fn revoke(&mut self, handle: MutationHandle) -> Result<(), QdnfError>
Revokes handle’s grant.
Sourcepub fn issue_permit(
&self,
handle: MutationHandle,
binding: AuthorityBinding,
now_unix: u64,
resource_ceiling: u64,
) -> Result<ExecutionPermit, QdnfError>
pub fn issue_permit( &self, handle: MutationHandle, binding: AuthorityBinding, now_unix: u64, resource_ceiling: u64, ) -> Result<ExecutionPermit, QdnfError>
Issues an ExecutionPermit for a handle under the current grant.
Sourcepub fn current_grant(
&self,
handle: MutationHandle,
) -> Result<TemporalGrant, QdnfError>
pub fn current_grant( &self, handle: MutationHandle, ) -> Result<TemporalGrant, QdnfError>
Active grant for handle; error when none.
Sourcepub fn validate_handle(&self, handle: MutationHandle) -> Result<(), QdnfError>
pub fn validate_handle(&self, handle: MutationHandle) -> Result<(), QdnfError>
Check record association/generation only; use issue_permit for live rights.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorityOwner
impl RefUnwindSafe for AuthorityOwner
impl Send for AuthorityOwner
impl Sync for AuthorityOwner
impl Unpin for AuthorityOwner
impl UnsafeUnpin for AuthorityOwner
impl UnwindSafe for AuthorityOwner
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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