pub struct Admission {
pub before: Vec<ThreadEvent>,
pub event: Option<ThreadEvent>,
pub violations: Vec<Violation>,
}Expand description
Result of admitting one event.
Fields§
§before: Vec<ThreadEvent>Repair events to emit before Admission::event.
event: Option<ThreadEvent>The admitted event, or None when it was dropped as a duplicate.
violations: Vec<Violation>Violations found while admitting the event.
Implementations§
Source§impl Admission
impl Admission
Sourcepub fn into_events(self) -> impl Iterator<Item = ThreadEvent>
pub fn into_events(self) -> impl Iterator<Item = ThreadEvent>
Every event to emit, in order: repairs first, then the admitted event.
Trait Implementations§
impl Eq for Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Forget for Admission
impl Freeze for Admissionwhere
*const u8 is !null: Freeze,
PhantomData<ThreadEvent>: Freeze,
*const MatrixSnapshot is !null: Freeze,
PhantomData<MatrixSnapshot>: Freeze,
*const TrackerSnapshot is !null: Freeze,
PhantomData<TrackerSnapshot>: Freeze,
*const GoalUpdatedEvent is !null: Freeze,
PhantomData<GoalUpdatedEvent>: Freeze,
PhantomData<u8>: Freeze,
*const ThreadCompletedEvent is !null: Freeze,
PhantomData<ThreadCompletedEvent>: Freeze,
*const ThreadCompactBoundaryEvent is !null: Freeze,
PhantomData<ThreadCompactBoundaryEvent>: Freeze,
*const TokenBreakdown is !null: Freeze,
PhantomData<TokenBreakdown>: Freeze,
*const ExecutionContext is !null: Freeze,
PhantomData<ExecutionContext>: Freeze,
*const String is !null: Freeze,
PhantomData<String>: Freeze,
*const TurnBlockedEvent is !null: Freeze,
PhantomData<TurnBlockedEvent>: Freeze,
*const ItemContext is !null: Freeze,
PhantomData<ItemContext>: Freeze,
*const ReasoningItem is !null: Freeze,
PhantomData<ReasoningItem>: Freeze,
*const DecisionItem is !null: Freeze,
PhantomData<DecisionItem>: Freeze,
*const CommandExecutionItem is !null: Freeze,
PhantomData<CommandExecutionItem>: Freeze,
*const ToolInvocationItem is !null: Freeze,
PhantomData<ToolInvocationItem>: Freeze,
*const ToolOutputItem is !null: Freeze,
PhantomData<ToolOutputItem>: Freeze,
*const FileChangeItem is !null: Freeze,
PhantomData<FileChangeItem>: Freeze,
*const McpToolCallItem is !null: Freeze,
PhantomData<McpToolCallItem>: Freeze,
*const WebSearchItem is !null: Freeze,
PhantomData<WebSearchItem>: Freeze,
*const HarnessEventItem is !null: Freeze,
PhantomData<HarnessEventItem>: Freeze,
*const AppSandboxDeniedEvent is !null: Freeze,
PhantomData<AppSandboxDeniedEvent>: Freeze,
*const PlanDeltaEvent is !null: Freeze,
PhantomData<PlanDeltaEvent>: Freeze,
PhantomData<Violation>: Freeze,
impl Move for Admission
impl RefUnwindSafe for Admission
impl Send for Admissionwhere
RawVecInner: Send,
BoxRaw<MatrixSnapshot>: Send,
BoxRaw<TrackerSnapshot>: Send,
BoxRaw<GoalUpdatedEvent>: Send,
BoxRaw<ThreadCompletedEvent>: Send,
BoxRaw<ThreadCompactBoundaryEvent>: Send,
BoxRaw<TokenBreakdown>: Send,
BoxRaw<ExecutionContext>: Send,
BoxRaw<String>: Send,
BoxRaw<TurnBlockedEvent>: Send,
BoxRaw<ItemContext>: Send,
BoxRaw<ReasoningItem>: Send,
BoxRaw<DecisionItem>: Send,
BoxRaw<CommandExecutionItem>: Send,
BoxRaw<ToolInvocationItem>: Send,
BoxRaw<ToolOutputItem>: Send,
BoxRaw<FileChangeItem>: Send,
BoxRaw<McpToolCallItem>: Send,
BoxRaw<WebSearchItem>: Send,
BoxRaw<HarnessEventItem>: Send,
BoxRaw<AppSandboxDeniedEvent>: Send,
BoxRaw<PlanDeltaEvent>: Send,
impl Sync for Admissionwhere
RawVecInner: Sync,
BoxRaw<MatrixSnapshot>: Sync,
BoxRaw<TrackerSnapshot>: Sync,
BoxRaw<GoalUpdatedEvent>: Sync,
BoxRaw<ThreadCompletedEvent>: Sync,
BoxRaw<ThreadCompactBoundaryEvent>: Sync,
BoxRaw<TokenBreakdown>: Sync,
BoxRaw<ExecutionContext>: Sync,
BoxRaw<String>: Sync,
BoxRaw<TurnBlockedEvent>: Sync,
BoxRaw<ItemContext>: Sync,
BoxRaw<ReasoningItem>: Sync,
BoxRaw<DecisionItem>: Sync,
BoxRaw<CommandExecutionItem>: Sync,
BoxRaw<ToolInvocationItem>: Sync,
BoxRaw<ToolOutputItem>: Sync,
BoxRaw<FileChangeItem>: Sync,
BoxRaw<McpToolCallItem>: Sync,
BoxRaw<WebSearchItem>: Sync,
BoxRaw<HarnessEventItem>: Sync,
BoxRaw<AppSandboxDeniedEvent>: Sync,
BoxRaw<PlanDeltaEvent>: Sync,
impl Unpin for Admissionwhere
*const u8 is !null: Unpin,
Box<MatrixSnapshot>: Unpin,
Box<TrackerSnapshot>: Unpin,
Box<GoalUpdatedEvent>: Unpin,
Box<ThreadCompletedEvent>: Unpin,
Box<ThreadCompactBoundaryEvent>: Unpin,
Box<TokenBreakdown>: Unpin,
Box<ExecutionContext>: Unpin,
Box<String>: Unpin,
Box<TurnBlockedEvent>: Unpin,
Box<ItemContext>: Unpin,
Box<ReasoningItem>: Unpin,
Box<DecisionItem>: Unpin,
Box<CommandExecutionItem>: Unpin,
Box<ToolInvocationItem>: Unpin,
Box<ToolOutputItem>: Unpin,
Box<FileChangeItem>: Unpin,
Box<McpToolCallItem>: Unpin,
Box<WebSearchItem>: Unpin,
Box<HarnessEventItem>: Unpin,
Box<AppSandboxDeniedEvent>: Unpin,
Box<PlanDeltaEvent>: Unpin,
impl UnsafeUnpin for Admissionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ThreadEvent>: UnsafeUnpin,
*const MatrixSnapshot is !null: UnsafeUnpin,
PhantomData<MatrixSnapshot>: UnsafeUnpin,
*const TrackerSnapshot is !null: UnsafeUnpin,
PhantomData<TrackerSnapshot>: UnsafeUnpin,
*const GoalUpdatedEvent is !null: UnsafeUnpin,
PhantomData<GoalUpdatedEvent>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ThreadCompletedEvent is !null: UnsafeUnpin,
PhantomData<ThreadCompletedEvent>: UnsafeUnpin,
*const ThreadCompactBoundaryEvent is !null: UnsafeUnpin,
PhantomData<ThreadCompactBoundaryEvent>: UnsafeUnpin,
*const TokenBreakdown is !null: UnsafeUnpin,
PhantomData<TokenBreakdown>: UnsafeUnpin,
*const ExecutionContext is !null: UnsafeUnpin,
PhantomData<ExecutionContext>: UnsafeUnpin,
*const String is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const TurnBlockedEvent is !null: UnsafeUnpin,
PhantomData<TurnBlockedEvent>: UnsafeUnpin,
*const ItemContext is !null: UnsafeUnpin,
PhantomData<ItemContext>: UnsafeUnpin,
*const ReasoningItem is !null: UnsafeUnpin,
PhantomData<ReasoningItem>: UnsafeUnpin,
*const DecisionItem is !null: UnsafeUnpin,
PhantomData<DecisionItem>: UnsafeUnpin,
*const CommandExecutionItem is !null: UnsafeUnpin,
PhantomData<CommandExecutionItem>: UnsafeUnpin,
*const ToolInvocationItem is !null: UnsafeUnpin,
PhantomData<ToolInvocationItem>: UnsafeUnpin,
*const ToolOutputItem is !null: UnsafeUnpin,
PhantomData<ToolOutputItem>: UnsafeUnpin,
*const FileChangeItem is !null: UnsafeUnpin,
PhantomData<FileChangeItem>: UnsafeUnpin,
*const McpToolCallItem is !null: UnsafeUnpin,
PhantomData<McpToolCallItem>: UnsafeUnpin,
*const WebSearchItem is !null: UnsafeUnpin,
PhantomData<WebSearchItem>: UnsafeUnpin,
*const HarnessEventItem is !null: UnsafeUnpin,
PhantomData<HarnessEventItem>: UnsafeUnpin,
*const AppSandboxDeniedEvent is !null: UnsafeUnpin,
PhantomData<AppSandboxDeniedEvent>: UnsafeUnpin,
*const PlanDeltaEvent is !null: UnsafeUnpin,
PhantomData<PlanDeltaEvent>: UnsafeUnpin,
PhantomData<Violation>: UnsafeUnpin,
impl UnwindSafe for Admissionwhere
RawVecInner: UnwindSafe,
BoxRaw<MatrixSnapshot>: UnwindSafe,
BoxRaw<TrackerSnapshot>: UnwindSafe,
BoxRaw<GoalUpdatedEvent>: UnwindSafe,
BoxRaw<ThreadCompletedEvent>: UnwindSafe,
BoxRaw<ThreadCompactBoundaryEvent>: UnwindSafe,
BoxRaw<TokenBreakdown>: UnwindSafe,
BoxRaw<ExecutionContext>: UnwindSafe,
BoxRaw<String>: UnwindSafe,
BoxRaw<TurnBlockedEvent>: UnwindSafe,
BoxRaw<ItemContext>: UnwindSafe,
BoxRaw<ReasoningItem>: UnwindSafe,
BoxRaw<DecisionItem>: UnwindSafe,
BoxRaw<CommandExecutionItem>: UnwindSafe,
BoxRaw<ToolInvocationItem>: UnwindSafe,
BoxRaw<ToolOutputItem>: UnwindSafe,
BoxRaw<FileChangeItem>: UnwindSafe,
BoxRaw<McpToolCallItem>: UnwindSafe,
BoxRaw<WebSearchItem>: UnwindSafe,
BoxRaw<HarnessEventItem>: UnwindSafe,
BoxRaw<AppSandboxDeniedEvent>: UnwindSafe,
BoxRaw<PlanDeltaEvent>: UnwindSafe,
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<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.