pub struct TurnEndContext<'a> {
pub session_id: &'a str,
pub turn_id: &'a str,
pub events: &'a mut Vec<EventMsg>,
/* private fields */
}Expand description
State exposed when the loop finishes or aborts a turn.
Fields§
§session_id: &'a str§turn_id: &'a str§events: &'a mut Vec<EventMsg>Implementations§
Source§impl TurnEndContext<'_>
impl TurnEndContext<'_>
pub fn outcome(&self) -> ExecutionOutcome
Sourcepub fn queued_messages(&self) -> impl Iterator<Item = QueuedMessageView<'_>>
pub fn queued_messages(&self) -> impl Iterator<Item = QueuedMessageView<'_>>
Returns queued messages still pending for this middleware, oldest first.
Auto Trait Implementations§
impl<'a> !UnwindSafe for TurnEndContext<'a>
impl<'a> Freeze for TurnEndContext<'a>
impl<'a> RefUnwindSafe for TurnEndContext<'a>
impl<'a> Send for TurnEndContext<'a>
impl<'a> Sync for TurnEndContext<'a>
impl<'a> Unpin for TurnEndContext<'a>
impl<'a> UnsafeUnpin for TurnEndContext<'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