pub enum ContentDiscoveryMode {
Streaming,
BufferedParallel,
}Expand description
Controls how content candidates are discovered before bounded file reads.
Variants§
Streaming
Discover candidates serially and overlap discovery with content reads.
This keeps memory bounded independently of the number of files.
BufferedParallel
Discover candidates with the parallel walker, retain their compact path evidence, then dispatch bounded content reads.
This minimizes latency on large, warm repositories at the cost of memory proportional to the number of selected files.
Trait Implementations§
Source§impl Clone for ContentDiscoveryMode
impl Clone for ContentDiscoveryMode
Source§fn clone(&self) -> ContentDiscoveryMode
fn clone(&self) -> ContentDiscoveryMode
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 moreimpl Copy for ContentDiscoveryMode
Source§impl Debug for ContentDiscoveryMode
impl Debug for ContentDiscoveryMode
impl Eq for ContentDiscoveryMode
Source§impl PartialEq for ContentDiscoveryMode
impl PartialEq for ContentDiscoveryMode
impl StructuralPartialEq for ContentDiscoveryMode
Auto Trait Implementations§
impl Freeze for ContentDiscoveryMode
impl RefUnwindSafe for ContentDiscoveryMode
impl Send for ContentDiscoveryMode
impl Sync for ContentDiscoveryMode
impl Unpin for ContentDiscoveryMode
impl UnsafeUnpin for ContentDiscoveryMode
impl UnwindSafe for ContentDiscoveryMode
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