pub struct SnapshotConfig {
pub poll_secs: u64,
pub request_max_age_secs: u64,
pub min_lifecycle: LifecycleState,
}Expand description
Daemon-side settings for the signed snapshot pull. Stored under
federation_snapshot: in ~/.mur/config.yaml; every field has a default
so an absent block means “defaults”, never “off”.
Fields§
§poll_secs: u64How often the daemon sweeps inbox/snapshot-requests/, in seconds.
request_max_age_secs: u64Reject requests older than this (replay blunting), in seconds.
min_lifecycle: LifecycleStateMinimum lifecycle state a global skill needs to enter a snapshot.
Trait Implementations§
Source§impl Clone for SnapshotConfig
impl Clone for SnapshotConfig
Source§fn clone(&self) -> SnapshotConfig
fn clone(&self) -> SnapshotConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotConfig
impl Debug for SnapshotConfig
Source§impl Default for SnapshotConfig
impl Default for SnapshotConfig
Source§impl<'de> Deserialize<'de> for SnapshotConfigwhere
SnapshotConfig: Default,
impl<'de> Deserialize<'de> for SnapshotConfigwhere
SnapshotConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SnapshotConfig
impl PartialEq for SnapshotConfig
Source§impl Serialize for SnapshotConfig
impl Serialize for SnapshotConfig
impl StructuralPartialEq for SnapshotConfig
Auto Trait Implementations§
impl Freeze for SnapshotConfig
impl RefUnwindSafe for SnapshotConfig
impl Send for SnapshotConfig
impl Sync for SnapshotConfig
impl Unpin for SnapshotConfig
impl UnsafeUnpin for SnapshotConfig
impl UnwindSafe for SnapshotConfig
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