pub struct RunnerConfig {
pub log_id: String,
pub cadence_entries: u64,
pub cadence_age: Duration,
pub scan_limit: usize,
pub poll_interval: Duration,
pub witness_ids: Vec<String>,
}Expand description
Configuration for a CheckpointRunner (Go RunnerConfig with its
Cadence).
Fields§
§log_id: StringThe checkpoint issuer: the CWT iss claim of every statement.
cadence_entries: u64Sign once this many entries are uncheckpointed (at least 1).
cadence_age: DurationSign once the oldest uncheckpointed entry is this old (above zero).
scan_limit: usizeEntries indexed per pass, 1..=MAX_SCAN_LIMIT.
poll_interval: DurationHow long CheckpointRunner::run waits between passes when it is
not notified (above zero).
witness_ids: Vec<String>Witnesses that get one delivery row per checkpoint: at most
MAX_WITNESSES distinct identifiers.
Implementations§
Source§impl RunnerConfig
impl RunnerConfig
Sourcepub fn new(log_id: impl Into<String>) -> Self
pub fn new(log_id: impl Into<String>) -> Self
The interoperable defaults for log_id: 100 entries or 15 minutes,
DEFAULT_SCAN_LIMIT entries per pass, a one-minute poll and no
witnesses.
Trait Implementations§
Source§impl Clone for RunnerConfig
impl Clone for RunnerConfig
Source§impl Debug for RunnerConfig
impl Debug for RunnerConfig
impl Eq for RunnerConfig
Source§impl PartialEq for RunnerConfig
impl PartialEq for RunnerConfig
impl StructuralPartialEq for RunnerConfig
Auto Trait Implementations§
impl Forget for RunnerConfig
impl Freeze for RunnerConfig
impl Move for RunnerConfig
impl RefUnwindSafe for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnsafeUnpin for RunnerConfig
impl UnwindSafe for RunnerConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.