pub struct SelectionState {
pub served_count: HashMap<String, u32>,
pub last_served: HashMap<String, u64>,
pub held_run: Option<(String, u32)>,
}Expand description
Caller-supplied selection state (persisted on disk by the binary).
Fields§
§served_count: HashMap<String, u32>id -> times served
last_served: HashMap<String, u64>id -> last-served ordinal (monotonic counter; higher = more recent)
held_run: Option<(String, u32)>An in-progress held run: (question id, turns completed so far).
Trait Implementations§
Source§impl Default for SelectionState
impl Default for SelectionState
Source§fn default() -> SelectionState
fn default() -> SelectionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SelectionState
impl RefUnwindSafe for SelectionState
impl Send for SelectionState
impl Sync for SelectionState
impl Unpin for SelectionState
impl UnsafeUnpin for SelectionState
impl UnwindSafe for SelectionState
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