pub struct TurnOptions<'a> { /* private fields */ }Expand description
Optional sinks and scoped effect controller passed to one of LashRuntime’s
turn-driving entry points (stream_turn,
stream_turn_with_agent_frames).
Construct via TurnOptions::new and chain with_* builders. Event sinks
default to no-op sinks. Effect scope is explicit: callers that are already
executing under an effect host must pass
TurnOptions::with_scoped_effect_controller; host-local entry points
construct a host-configured scope at their boundary.
Implementations§
Source§impl<'a> TurnOptions<'a>
impl<'a> TurnOptions<'a>
pub fn new(cancel: CancellationToken) -> Self
pub fn with_events(self, events: &'a dyn EventSink) -> Self
pub fn with_turn_events(self, turn_events: &'a dyn TurnActivitySink) -> Self
pub fn with_scoped_effect_controller( self, scoped_effect_controller: ScopedEffectController<'a>, ) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TurnOptions<'a>
impl<'a> !UnwindSafe for TurnOptions<'a>
impl<'a> Freeze for TurnOptions<'a>
impl<'a> Send for TurnOptions<'a>
impl<'a> Sync for TurnOptions<'a>
impl<'a> Unpin for TurnOptions<'a>
impl<'a> UnsafeUnpin for TurnOptions<'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