pub struct Optimism {
pub timeout: u32,
pub solo_attempts: u32,
pub any_attempts: u32,
}Expand description
How long, and how often, an agent bids optimistically on a task in a mutual dependency.
Fields§
§timeout: u32Rounds an agent keeps such a task while a task it depends on has no winner; o in
the paper.
solo_attempts: u32Attempts at bidding on such a task even while none of the tasks it depends on has a
winner; w_solo in the paper.
any_attempts: u32Attempts at bidding on such a task once at least one of the tasks it depends on has
a winner; w_any in the paper, usually larger than solo_attempts.
As in the paper, an agent may bid while either budget lasts (any only with a
dependency met), and every timeout spends one attempt from both.
Trait Implementations§
impl Copy for Optimism
impl Eq for Optimism
impl StructuralPartialEq for Optimism
Auto Trait Implementations§
impl Forget for Optimism
impl Freeze for Optimism
impl Move for Optimism
impl RefUnwindSafe for Optimism
impl Send for Optimism
impl Sync for Optimism
impl Unpin for Optimism
impl UnsafeUnpin for Optimism
impl UnwindSafe for Optimism
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