MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / status

Method status

atomic-identity/src/delegation.rs:709–715  ·  view source on GitHub ↗

Status from purely local facts. Revocation is server state, so a caller that knows a revocation exists should report [`DelegationStatus::Revoked`] itself rather than asking this.

(&self)

Source from the content-addressed store, hash-verified

707 /// that knows a revocation exists should report [`DelegationStatus::Revoked`]
708 /// itself rather than asking this.
709 pub fn status(&self) -> DelegationStatus {
710 if self.is_expired() {
711 DelegationStatus::Expired
712 } else {
713 DelegationStatus::Active
714 }
715 }
716
717 /// Time remaining before expiry, or `None` if it never expires.
718 pub fn time_remaining(&self) -> Option<Duration> {

Callers

nothing calls this directly

Calls 1

is_expiredMethod · 0.45

Tested by

no test coverage detected