#[non_exhaustive]pub struct TrustStoreSettings {
pub waiting: WaitingSettings,
pub rotation: RotationOptions,
}Expand description
What a TrustStore is built from, besides the directory and the clock, in the form a
file, a form or a peer fills.
Every key is optional (an absent one is its default) and an unknown key is refused. The
directory is not a setting: TrustStoreBuilder::state_dir takes it. The type is
Describe, so a Partial<TrustStoreSettings> is filled from text and built, and it is
#[non_exhaustive]: start from Default and assign the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.waiting: WaitingSettingsThe waiting queue: its limits, how sources are grouped and what a full source does.
rotation: RotationOptionsHow an accepted peer’s key is replaced by its successor.
Implementations§
Source§impl TrustStoreSettings
impl TrustStoreSettings
Sourcepub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
Every setting that differs from its default, named by key path (waiting.limits.total).
Trait Implementations§
Source§impl Clone for TrustStoreSettings
impl Clone for TrustStoreSettings
impl Copy for TrustStoreSettings
Source§impl Debug for TrustStoreSettings
impl Debug for TrustStoreSettings
Source§impl Default for TrustStoreSettings
impl Default for TrustStoreSettings
Source§impl Describe for TrustStoreSettings
impl Describe for TrustStoreSettings
impl Eq for TrustStoreSettings
impl Fields for TrustStoreSettings
Source§impl Holds<TrustStoreSettings> for TrustStoreBuilderwhere
TrustStoreSettings: Describe,
impl Holds<TrustStoreSettings> for TrustStoreBuilderwhere
TrustStoreSettings: Describe,
Source§fn partial_mut(&mut self) -> &mut Partial<TrustStoreSettings>
fn partial_mut(&mut self) -> &mut Partial<TrustStoreSettings>
The settings being filled.
Source§impl Inspect for TrustStoreSettings
impl Inspect for TrustStoreSettings
Source§impl PartialEq for TrustStoreSettings
impl PartialEq for TrustStoreSettings
impl StructuralPartialEq for TrustStoreSettings
Auto Trait Implementations§
impl Freeze for TrustStoreSettings
impl RefUnwindSafe for TrustStoreSettings
impl Send for TrustStoreSettings
impl Sync for TrustStoreSettings
impl Unpin for TrustStoreSettings
impl UnsafeUnpin for TrustStoreSettings
impl UnwindSafe for TrustStoreSettings
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