Skip to main content

Live

Struct Live 

Source
pub struct Live {
    pub versions_dir: String,
}
Expand description

The live implementation of everything plan needs.

Fields§

§versions_dir: String

Trait Implementations§

Source§

impl Env for Live

Source§

fn capture(&self, pane: &str) -> String

Source§

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
Source§

fn hook_state(&self, pane: &str, pid: i32) -> Option<String>

Source§

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>

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>

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>

Every background session running now, whether a pane shows it or not. None by default, and for every fixture that predates it.
Source§

fn version_of_pid(&self, pid: i32) -> Option<String>

Source§

fn cwd_of(&self, pid: i32) -> Option<String>

Source§

fn argv_of(&self, pid: i32) -> Vec<String>

Source§

fn resolve( &self, pane: &str, cwd: &str, title: &str, pid: i32, ) -> Result<String, String>

Source§

fn read_transcript(&self, path: &str) -> Option<String>

Source§

fn now(&self) -> i64

Auto Trait Implementations§

§

impl Forget for Live

§

impl Freeze for Live
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for Live

§

impl RefUnwindSafe for Live

§

impl Send for Live
where RawVecInner: Send,

§

impl Sync for Live
where RawVecInner: Sync,

§

impl Unpin for Live
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Live

§

impl UnwindSafe for Live
where RawVecInner: UnwindSafe,

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
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.