pub struct RipgrepSearcher<C> { /* private fields */ }Expand description
Repository searcher that invokes rg through a CommandExecutor.
Implementations§
Source§impl<C> RipgrepSearcher<C>
impl<C> RipgrepSearcher<C>
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the ripgrep command timeout.
Trait Implementations§
Source§impl<C: Clone> Clone for RipgrepSearcher<C>
impl<C: Clone> Clone for RipgrepSearcher<C>
Source§fn clone(&self) -> RipgrepSearcher<C>
fn clone(&self) -> RipgrepSearcher<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C> Debug for RipgrepSearcher<C>
impl<C> Debug for RipgrepSearcher<C>
Source§impl<C> RepoSearcher for RipgrepSearcher<C>where
C: CommandExecutor + 'static,
impl<C> RepoSearcher for RipgrepSearcher<C>where
C: CommandExecutor + 'static,
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
request: RepoSearchRequest,
context: &'life1 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RepoSearchResults, SearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
request: RepoSearchRequest,
context: &'life1 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RepoSearchResults, SearchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Searches repository content.
Auto Trait Implementations§
impl<C> Freeze for RipgrepSearcher<C>
impl<C> RefUnwindSafe for RipgrepSearcher<C>where
Arc<C>: RefUnwindSafe,
impl<C> Send for RipgrepSearcher<C>
impl<C> Sync for RipgrepSearcher<C>
impl<C> Unpin for RipgrepSearcher<C>
impl<C> UnsafeUnpin for RipgrepSearcher<C>where
Arc<C>: UnsafeUnpin,
impl<C> UnwindSafe for RipgrepSearcher<C>where
Arc<C>: UnwindSafe,
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