pub struct Options {
pub interval: Duration,
pub poll: Duration,
pub backoff_max: Duration,
pub timeout: Duration,
pub grace: Duration,
}Expand description
The loop’s timing. Default is the one place its values are written: borg mesh serve’s
--interval default and the bounds of the one-shot commands (main.rs) read them from it.
Fields§
§interval: DurationHow often every peer is dialled when nothing changed locally (60 s). Guard: bounds how stale
a node can be when a peer’s change never triggered a dial (a member’s own round failed, a
change that arrived over a third node); a local change is carried at the next poll anyway.
poll: DurationHow often the local files are checked for a change to carry (2 s). Method: the polling
period of a stat per synced file; a change made here is dialled within this much.
backoff_max: DurationThe longest backoff after failed dials (30 min). Guard: bounds the doubling, so a peer back after a long outage is dialled again within this much.
timeout: DurationLongest one dial may take before it counts as a failure (30 s). Guard: a peer that accepts and never answers holds up only its own dial, and only this long.
grace: DurationHow long running sessions get to finish at a stop (5 s). Guard: Ctrl-C ends the node even when a peer’s session hangs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more