pub struct RotationOptions {
pub retire_after: Duration,
pub require_approval: bool,
pub allow_unproven: bool,
}Expand description
How an accepted peer’s key is replaced by its successor.
Fields§
§retire_after: DurationHow long the old key stays accepted once its successor is promoted. Default 24 hours.
require_approval: boolWhether a successor waits for TrustStore::promote_successor instead of being
promoted by the method the first time the peer proves it. Default false.
allow_unproven: boolWhether 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.
Trait Implementations§
Source§impl Clone for RotationOptions
impl Clone for RotationOptions
impl Copy for RotationOptions
Source§impl Debug for RotationOptions
impl Debug for RotationOptions
Source§impl Default for RotationOptions
impl Default for RotationOptions
impl Eq for RotationOptions
Source§impl PartialEq for RotationOptions
impl PartialEq for RotationOptions
impl StructuralPartialEq for RotationOptions
Auto Trait Implementations§
impl Freeze for RotationOptions
impl RefUnwindSafe for RotationOptions
impl Send for RotationOptions
impl Sync for RotationOptions
impl Unpin for RotationOptions
impl UnsafeUnpin for RotationOptions
impl UnwindSafe for RotationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more