pub struct GrepSearchManager { /* private fields */ }
Expand description
State machine for grep_search orchestration.
Implementations§
Source§impl GrepSearchManager
impl GrepSearchManager
pub fn new(search_dir: PathBuf) -> Self
Sourcepub fn on_user_query(&self, query: String)
pub fn on_user_query(&self, query: String)
Call whenever the user edits the search query.
Sourcepub fn last_result(&self) -> Option<GrepSearchResult>
pub fn last_result(&self) -> Option<GrepSearchResult>
Retrieve the last successful search result
Sourcepub async fn perform_search(
&self,
input: GrepSearchInput,
) -> Result<GrepSearchResult>
pub async fn perform_search( &self, input: GrepSearchInput, ) -> Result<GrepSearchResult>
Perform an actual ripgrep search with the given input parameters
Auto Trait Implementations§
impl Freeze for GrepSearchManager
impl RefUnwindSafe for GrepSearchManager
impl Send for GrepSearchManager
impl Sync for GrepSearchManager
impl Unpin for GrepSearchManager
impl UnwindSafe for GrepSearchManager
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