#[non_exhaustive]pub struct LoopCtx<'a> {
pub session_id: &'a SessionId,
pub turn_id: Option<&'a TurnId>,
pub point: MutationPoint,
pub cancellation: Option<TurnCancellation>,
pub emitter: &'a dyn EventEmitter,
}Expand description
Read-only context handed to a LoopMutator alongside the cursor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: &'a SessionIdSession this mutation point belongs to.
turn_id: Option<&'a TurnId>Turn the mutation is associated with, if any.
point: MutationPointWhere in the loop the mutator is running.
cancellation: Option<TurnCancellation>Cancellation handle for the active turn, if any.
emitter: &'a dyn EventEmitterSink for emitting events from the mutator (telemetry, progress).
Auto Trait Implementations§
impl<'a> Freeze for LoopCtx<'a>
impl<'a> !RefUnwindSafe for LoopCtx<'a>
impl<'a> Send for LoopCtx<'a>
impl<'a> Sync for LoopCtx<'a>
impl<'a> Unpin for LoopCtx<'a>
impl<'a> UnsafeUnpin for LoopCtx<'a>
impl<'a> !UnwindSafe for LoopCtx<'a>
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