pub struct StateDetector { /* private fields */ }Implementations§
Source§impl StateDetector
impl StateDetector
pub fn new() -> Self
Sourcepub fn pane_id(&self, window_index: u32) -> Option<&str>
pub fn pane_id(&self, window_index: u32) -> Option<&str>
Get the tmux pane_id (e.g. “%5”) for a window’s Claude pane.
Sourcepub fn detect(&mut self, windows: &[WindowInfo]) -> HashMap<u32, WindowState>
pub fn detect(&mut self, windows: &[WindowInfo]) -> HashMap<u32, WindowState>
Detect the state of each window. Returns a map from window_index to state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateDetector
impl RefUnwindSafe for StateDetector
impl Send for StateDetector
impl Sync for StateDetector
impl Unpin for StateDetector
impl UnsafeUnpin for StateDetector
impl UnwindSafe for StateDetector
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