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 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 Freeze for Live

§

impl RefUnwindSafe for Live

§

impl Send for Live

§

impl Sync for Live

§

impl Unpin for Live

§

impl UnsafeUnpin for Live

§

impl UnwindSafe for Live

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.