Skip to main content

Admission

Struct Admission 

Source
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

Source

pub fn into_events(self) -> impl Iterator<Item = ThreadEvent>

Every event to emit, in order: repairs first, then the admitted event.

Trait Implementations§

Source§

impl Debug for Admission

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Admission

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Admission

Source§

impl PartialEq for Admission

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Admission

Auto Trait Implementations§

§

impl Forget for Admission

§

impl Freeze for Admission
where *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 Admission

§

impl Sync for Admission

§

impl Unpin for Admission

§

impl UnsafeUnpin for Admission
where *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 Admission

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more