pub struct SleepHandler;Expand description
Performs Effect::Sleep.
Effect::Sleep was declared, documented as “journaled like anything
else, so a replay does not sleep again”, and handled by nobody: a step
that awaited one got “no handler for effect sleep:1ms”. The variant
existed; the four lines that make it work did not.
And the journaling is the point. A step that backs off for thirty seconds pays that once — a replay reads the recorded result and moves on, which is what makes a resumed agentic run cheap.
Trait Implementations§
Source§impl Clone for SleepHandler
impl Clone for SleepHandler
Source§fn clone(&self) -> SleepHandler
fn clone(&self) -> SleepHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SleepHandler
Source§impl Debug for SleepHandler
impl Debug for SleepHandler
Source§impl Default for SleepHandler
impl Default for SleepHandler
Source§fn default() -> SleepHandler
fn default() -> SleepHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SleepHandler
impl RefUnwindSafe for SleepHandler
impl Send for SleepHandler
impl Sync for SleepHandler
impl Unpin for SleepHandler
impl UnsafeUnpin for SleepHandler
impl UnwindSafe for SleepHandler
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