pub trait SigningCredential:
Clone
+ Debug
+ Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn is_valid(&self) -> bool;
// Provided method
fn is_valid_at(&self, _ts: Timestamp) -> bool { ... }
}Expand description
A credential that can distinguish cache freshness from exact usability.
Both checks must reject credentials that lack fields required for authentication.
Required Methods§
Provided Methods§
Sourcefn is_valid_at(&self, _ts: Timestamp) -> bool
fn is_valid_at(&self, _ts: Timestamp) -> bool
Return whether the credential is usable at this exact timestamp.
Implementations with an expiration time should not add a refresh or
operation-specific buffer here. The default preserves the behavior of
implementations that only provide SigningCredential::is_valid.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".