#[non_exhaustive]pub enum Moment {
Request {
reassembled: bool,
},
ToolTurnEnd,
FinalTurn,
}Expand description
The point in the loop at which a ContextSource is asked for blocks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Request
A request is being assembled.
reassembled is true when the window was rewritten since the
previous request (a cold-cache reassembly or an applied compaction):
every Placement::Stable block from before it is gone, and a source
that needs the model to still know something must say it again. The
first call of an agent is the start of the session.
ToolTurnEnd
A turn that executed tools ended.
FinalTurn
The model is about to end the run. Any Placement::Stable block
returned here is an objection: it forces another turn, such as to
refuse an early finish while a checklist has unchecked items.
Trait Implementations§
impl Copy for Moment
impl Eq for Moment
impl StructuralPartialEq for Moment
Auto Trait Implementations§
impl Forget for Moment
impl Freeze for Moment
impl Move for Moment
impl RefUnwindSafe for Moment
impl Send for Moment
impl Sync for Moment
impl Unpin for Moment
impl UnsafeUnpin for Moment
impl UnwindSafe for Moment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.