Skip to main content

RotationOptionsSetters

Trait RotationOptionsSetters 

Source
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§

Source

fn retire_after(self, value: impl Into<Duration>) -> Self

How long the old key stays accepted once its successor is promoted. Default 24 hours.

Source

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.

Source

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".

Implementors§

Source§

impl<__B> RotationOptionsSetters for __B
where __B: Holds<RotationOptions>,