pub struct WorkspaceSearcher<W> { /* private fields */ }Expand description
In-process fallback searcher based on Workspace reads.
Implementations§
Source§impl<W> WorkspaceSearcher<W>
impl<W> WorkspaceSearcher<W>
Sourcepub fn with_max_file_bytes(self, max_file_bytes: usize) -> Self
pub fn with_max_file_bytes(self, max_file_bytes: usize) -> Self
Sets the per-file read budget.
Trait Implementations§
Source§impl<W: Clone> Clone for WorkspaceSearcher<W>
impl<W: Clone> Clone for WorkspaceSearcher<W>
Source§fn clone(&self) -> WorkspaceSearcher<W>
fn clone(&self) -> WorkspaceSearcher<W>
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<W: Debug> Debug for WorkspaceSearcher<W>
impl<W: Debug> Debug for WorkspaceSearcher<W>
Source§impl<W> RepoSearcher for WorkspaceSearcher<W>where
W: Workspace,
impl<W> RepoSearcher for WorkspaceSearcher<W>where
W: Workspace,
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<W> Freeze for WorkspaceSearcher<W>where
W: Freeze,
impl<W> RefUnwindSafe for WorkspaceSearcher<W>where
W: RefUnwindSafe,
impl<W> Send for WorkspaceSearcher<W>where
W: Send,
impl<W> Sync for WorkspaceSearcher<W>where
W: Sync,
impl<W> Unpin for WorkspaceSearcher<W>where
W: Unpin,
impl<W> UnsafeUnpin for WorkspaceSearcher<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WorkspaceSearcher<W>where
W: 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