pub struct Live {
pub versions_dir: String,
}Expand description
The live implementation of everything plan needs.
Fields§
§versions_dir: StringTrait Implementations§
Source§impl Env for Live
impl Env for Live
fn capture(&self, pane: &str) -> String
Source§fn capture_zoomed(&self, pane: &str) -> Option<String>
fn capture_zoomed(&self, pane: &str) -> Option<String>
The same pane read at a size claude will draw its prompt box on, for the
one that is too short to show one at the size it is. Read more
fn hook_state(&self, pane: &str, pid: i32) -> Option<String>
Source§fn hook_mode(&self, pane: &str, pid: i32) -> Option<String>
fn hook_mode(&self, pane: &str, pid: i32) -> Option<String>
The permission mode on the session’s hook line, the one its last turn
ran in.
None by default, and for every fixture that predates it.Source§fn own_state(&self, pid: i32, screen: &str) -> Option<State>
fn own_state(&self, pid: i32, screen: &str) -> Option<State>
What the session says it is doing, Claude Code’s own status
(
status::of), which outranks the hook line wherever there is one.
None by default, and for every fixture that predates it.Source§fn elsewhere(&self, pane: &str, pid: i32) -> Option<Elsewhere>
fn elsewhere(&self, pane: &str, pid: i32) -> Option<Elsewhere>
The background session this pane shows when another process runs it:
an attach, or a pane whose conversation was moved into the background.
Source§fn background(&self) -> Vec<BgSession>
fn background(&self) -> Vec<BgSession>
Every background session running now, whether a pane shows it or not.
None by default, and for every fixture that predates it.
fn version_of_pid(&self, pid: i32) -> Option<String>
fn cwd_of(&self, pid: i32) -> Option<String>
fn argv_of(&self, pid: i32) -> Vec<String>
fn resolve( &self, pane: &str, cwd: &str, title: &str, pid: i32, ) -> Result<String, String>
fn read_transcript(&self, path: &str) -> Option<String>
fn now(&self) -> i64
Auto Trait Implementations§
impl Forget for Live
impl Freeze for Live
impl Move for Live
impl RefUnwindSafe for Live
impl Send for Livewhere
RawVecInner: Send,
impl Sync for Livewhere
RawVecInner: Sync,
impl Unpin for Live
impl UnsafeUnpin for Live
impl UnwindSafe for Livewhere
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> 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