pub struct Snap<'a> {
pub file: Option<(&'a str, &'a [u8])>,
pub error: Option<&'a [u8]>,
pub doc: Option<&'a Doc>,
pub meta: Meta,
pub index: Option<&'a str>,
pub slot: Option<usize>,
}Expand description
What Cache::ingest stores.
Fields§
§file: Option<(&'a str, &'a [u8])>(raw.html|raw.pdf|raw.zip|…, body); None = a failed fetch with no body: meta.json alone.
error: Option<&'a [u8]>The providers’ error answers (ERROR_FILE).
doc: Option<&'a Doc>§meta: Meta§index: Option<&'a str>The key later reads find it by (the URL; a local file’s content hash); None = not reused.
slot: Option<usize>The unfetched search result this fills.
Auto Trait Implementations§
impl<'a> Forget for Snap<'a>
impl<'a> Freeze for Snap<'a>
impl<'a> RefUnwindSafe for Snap<'a>
impl<'a> Send for Snap<'a>
impl<'a> Sync for Snap<'a>
impl<'a> Unpin for Snap<'a>
impl<'a> UnsafeUnpin for Snap<'a>
impl<'a> UnwindSafe for Snap<'a>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.