pub struct Claim {
pub winner: Option<AgentId>,
pub bid: u64,
pub time: u64,
}Expand description
One task’s entry: who wins it, with what bid, and when that bid was made.
Fields§
§winner: Option<AgentId>The believed winner; None when there is no known bid.
bid: u64The winning bid; zero when there is no winner.
time: u64When the bid was made or last confirmed, or when the task was last reset, in ticks of a clock all agents share.
Implementations§
Trait Implementations§
impl Copy for Claim
impl Eq for Claim
impl StructuralPartialEq for Claim
Auto Trait Implementations§
impl Forget for Claim
impl Freeze for Claim
impl Move for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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