pub struct CellHints { /* private fields */ }Implementations§
Source§impl CellHints
impl CellHints
pub fn new(module: Arc<HintsModule>, options: CellHintsOptions) -> Self
Sourcepub fn set_lane_woken(&self, woken: LaneWoken)
pub fn set_lane_woken(&self, woken: LaneWoken)
Which lanes the host wakes when their work ends: the others’ hints say to await what the answer needs (nothing wakes them after they reply) instead of “end your turn”.
pub fn enabled(&self) -> bool
Sourcepub fn active(&self) -> bool
pub fn active(&self) -> bool
Whether cells are observed at all: every hint is on, or the loop guards are.
Sourcepub fn refusal(&self, lane: &str, code: &str) -> Option<String>
pub fn refusal(&self, lane: &str, code: &str) -> Option<String>
Why code is not run on lane: the same cell just succeeded twice [CELL_REPEATS] times in a row there
(the repeated-cell hint said so twice). Any other cell starts the count over.
Sourcepub fn run_ended(&self, lane: &str)
pub fn run_ended(&self, lane: &str)
lane’s run ended: failure streaks and repeats start over with its next run.
Sourcepub fn begin_cell(&self, lane: &str, code: &str)
pub fn begin_cell(&self, lane: &str, code: &str)
A cell starts on lane.
Auto Trait Implementations§
impl !Freeze for CellHints
impl !RefUnwindSafe for CellHints
impl !UnwindSafe for CellHints
impl Forget for CellHints
impl Move for CellHints
impl Send for CellHints
impl Sync for CellHints
impl Unpin for CellHints
impl UnsafeUnpin for CellHints
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