pub struct BgSession {
pub id: String,
pub pid: i32,
pub version: Option<String>,
pub name: String,
pub state: Option<State>,
pub transcript: Option<String>,
pub in_flight: Option<InFlight>,
}Expand description
A background session as Claude Code’s own files describe it, for the ones no pane shows: there is no screen to read, so this is all there is.
Fields§
§id: StringThe id claude respawn takes.
pid: i32The worker running it.
version: Option<String>The version that worker runs.
name: String§state: Option<State>What the session says it is doing.
transcript: Option<String>§in_flight: Option<InFlight>What the job’s own record says it left going, or None where that
record says nothing.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BgSession
impl Freeze for BgSession
impl Move for BgSession
impl RefUnwindSafe for BgSession
impl Send for BgSessionwhere
RawVecInner: Send,
impl Sync for BgSessionwhere
RawVecInner: Sync,
impl Unpin for BgSession
impl UnsafeUnpin for BgSession
impl UnwindSafe for BgSessionwhere
RawVecInner: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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