pub(crate) struct DocumentIngestor<'a, S> {
config: &'a Config,
store: &'a S,
max_extract_bytes: u64,
}Expand description
Executes the existing canonical write path for one already-discovered item.
Fields§
§config: &'a Config§store: &'a S§max_extract_bytes: u64Implementations§
Source§impl<'a, S: AppStore> DocumentIngestor<'a, S>
impl<'a, S: AppStore> DocumentIngestor<'a, S>
pub(crate) fn new(config: &'a Config, store: &'a S, source_label: &str) -> Self
pub(crate) async fn ingest( &self, item: &mut SourceItem, ) -> Result<DocumentIngestOutcome>
Auto Trait Implementations§
impl<'a, S> Freeze for DocumentIngestor<'a, S>
impl<'a, S> RefUnwindSafe for DocumentIngestor<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for DocumentIngestor<'a, S>where
S: Sync,
impl<'a, S> Sync for DocumentIngestor<'a, S>where
S: Sync,
impl<'a, S> Unpin for DocumentIngestor<'a, S>
impl<'a, S> UnsafeUnpin for DocumentIngestor<'a, S>
impl<'a, S> UnwindSafe for DocumentIngestor<'a, S>where
S: RefUnwindSafe,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more