pub trait RotationOptionsSetters: Holds<RotationOptions> + Sized {
// Required methods
fn retire_after(self, value: impl Into<Duration>) -> Self;
fn require_approval(self, value: bool) -> Self;
fn allow_unproven(self, value: bool) -> Self;
}Expand description
The typed setters of RotationOptions, for any builder that holds its settings.
Required Methods§
Sourcefn retire_after(self, value: impl Into<Duration>) -> Self
fn retire_after(self, value: impl Into<Duration>) -> Self
How long the old key stays accepted once its successor is promoted. Default 24 hours.
Sourcefn require_approval(self, value: bool) -> Self
fn require_approval(self, value: bool) -> Self
Whether a successor waits for TrustStore::promote_successor instead of being
promoted by the method the first time the peer proves it. Default false.
Sourcefn allow_unproven(self, value: bool) -> Self
fn allow_unproven(self, value: bool) -> Self
Whether TrustStore::promote_successor promotes a successor nobody proved
(TrustStore::prove_successor): the old key’s holder then vouches alone for a key
that may not be its own. Default false.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".