pub enum Resolution {
Won,
Lost {
winner: ResponseId,
},
Replayed {
winner: ResponseId,
},
}Expand description
The outcome of an attempt to resolve an offer.
Variants§
Won
This response resolved the offer. Exactly one attempt per offer ever sees this.
Lost
The offer was already resolved by a different response. The loser is told WHO won, so every racer observes the same terminal fact rather than a bare failure.
Fields
§
winner: ResponseIdThe response that resolved the offer.
Replayed
The same submission arrived again. Not a second resolution.
Fields
§
winner: ResponseIdThe response that resolved the offer — the same one.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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