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)
| 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> { |
nothing calls this directly
no test coverage detected