pub struct ViewFacts {
pub session_id: Option<SessionId>,
pub model: Option<CurrentModel>,
pub observed_effort: Option<EffortLevel>,
pub configured_effort: Option<EffortLevel>,
pub permission_mode: Option<PermissionMode>,
pub context: Option<ContextUsage>,
pub mcp: Option<McpServers>,
pub process_snapshot: Option<ProcessSnapshot>,
pub background_tasks: Vec<BackgroundTask>,
pub live_tasks: Vec<BackgroundTask>,
pub monitors: Vec<MonitorRecord>,
pub cards: Vec<SubagentCard>,
}Expand description
The facts a session holds that no update stream carries, for a view’s fixture to seed. Every field is what the session reports: leaving one out is a session that has not reported it.
Fields§
§session_id: Option<SessionId>§model: Option<CurrentModel>§observed_effort: Option<EffortLevel>The effort a hook observed, which a session reports only once it has used a tool.
configured_effort: Option<EffortLevel>The effort the launch stamped, which stands until a hook reports.
permission_mode: Option<PermissionMode>§context: Option<ContextUsage>§mcp: Option<McpServers>§process_snapshot: Option<ProcessSnapshot>§background_tasks: Vec<BackgroundTask>The CLI’s background registry, as background_tasks_changed would
have left it.
live_tasks: Vec<BackgroundTask>The announced holds the registry does not name - a long foreground call the CLI is tracking - which no wire in a fixture can produce.
monitors: Vec<MonitorRecord>§cards: Vec<SubagentCard>The instances the session task’s fold has folded. Seeded by hand because the list a record reads is the one the session task pushes, and a fixture has no task to push it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewFacts
impl RefUnwindSafe for ViewFacts
impl Send for ViewFacts
impl Sync for ViewFacts
impl Unpin for ViewFacts
impl UnsafeUnpin for ViewFacts
impl UnwindSafe for ViewFacts
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more