pub struct AiState {
pub running: bool,
pub provider: Option<&'static str>,
pub session: Option<SessionKey>,
pub auto_accept: bool,
pub queue_len: usize,
}Expand description
Editor-visible snapshot of the active AI session, if any. Cheap to clone
and compare; read via AiClientHandle::snapshot.
Fields§
§running: bool§provider: Option<&'static str>§session: Option<SessionKey>Active session key (provider + per-provider index), if a session is open.
auto_accept: boolAU‑5: trust mode. false (the default) is review mode — file edits
are gated on a diff verdict and un-reviewable mutating ops are denied.
true auto-grants every permission request without the diff gate.
queue_len: usizeAUX‑4: number of prompts currently queued behind an in-flight one.
Trait Implementations§
impl Eq for AiState
impl StructuralPartialEq for AiState
Auto Trait Implementations§
impl Freeze for AiState
impl RefUnwindSafe for AiState
impl Send for AiState
impl Sync for AiState
impl Unpin for AiState
impl UnsafeUnpin for AiState
impl UnwindSafe for AiState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.