pub struct Config {
pub gossip: Config,
pub store_probability: f64,
pub request_rounds: u32,
pub gap_timeout: Duration,
pub window: usize,
}Expand description
How this instance recovers.
Fields§
§gossip: ConfigThe gossip beneath: its fanout, rounds and window.
store_probability: f64How likely a process is to keep a copy for answering requests.
The book’s α is one minus this. Named for what it does; see the module note. At 1.0
every process stores everything, which is the certain and expensive case the book describes
as α = 0.
request_rounds: u32R for a request — how far a request is relayed before it is abandoned.
gap_timeout: DurationΔ — how long to wait for a gap before giving up on it.
window: usizeHow many messages to keep in stored and pending, per sender.
Trait Implementations§
impl Copy for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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