pub struct AmpWatcher;Expand description
Watcher for Amp CLI sessions.
Discovers and parses JSON session files from the Amp CLI tool.
Sessions are stored in ~/.local/share/amp/threads/T-*.json.
Trait Implementations§
Source§impl Watcher for AmpWatcher
impl Watcher for AmpWatcher
Source§fn info(&self) -> WatcherInfo
fn info(&self) -> WatcherInfo
Returns information about this watcher.
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Checks if this watcher is available. Read more
Source§fn find_sources(&self) -> Result<Vec<PathBuf>>
fn find_sources(&self) -> Result<Vec<PathBuf>>
Finds all session sources (files or directories) to import. Read more
Auto Trait Implementations§
impl Freeze for AmpWatcher
impl RefUnwindSafe for AmpWatcher
impl Send for AmpWatcher
impl Sync for AmpWatcher
impl Unpin for AmpWatcher
impl UnwindSafe for AmpWatcher
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