pub struct CodeIndexPlan { /* private fields */ }Expand description
Blocking plan for a checkpointed full repository index.
Implementations§
Source§impl CodeIndexPlan
impl CodeIndexPlan
Sourcepub fn session(&self) -> CodeIndexSession
pub fn session(&self) -> CodeIndexSession
Returns the durable session metadata that storage checkpoints.
Sourcepub fn resume_from_checkpoint(
self,
checkpoint: &CodeIndexCheckpoint,
) -> Result<Self, CodeIndexError>
pub fn resume_from_checkpoint( self, checkpoint: &CodeIndexCheckpoint, ) -> Result<Self, CodeIndexError>
Restores the parser cursor from a fully committed durable checkpoint. Fresh plans still begin at zero; this path is only valid before any in-memory parse work has started.
Sourcepub fn parse_next_batch(
self,
) -> Result<(Self, Option<CodeIndexBatch>), CodeIndexError>
pub fn parse_next_batch( self, ) -> Result<(Self, Option<CodeIndexBatch>), CodeIndexError>
Parses the next bounded file batch while retaining at most one fetched group’s uncommitted row-budget overflow.
Trait Implementations§
Source§impl Clone for CodeIndexPlan
impl Clone for CodeIndexPlan
Source§fn clone(&self) -> CodeIndexPlan
fn clone(&self) -> CodeIndexPlan
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 moreAuto Trait Implementations§
impl Freeze for CodeIndexPlan
impl RefUnwindSafe for CodeIndexPlan
impl Send for CodeIndexPlan
impl Sync for CodeIndexPlan
impl Unpin for CodeIndexPlan
impl UnsafeUnpin for CodeIndexPlan
impl UnwindSafe for CodeIndexPlan
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