pub struct IndexableAdapter<T: IndexableSource> { /* private fields */ }Expand description
DataSource adapter that pages an IndexableSource via IndexablePager.
Implementations§
Source§impl<T: IndexableSource> IndexableAdapter<T>
impl<T: IndexableSource> IndexableAdapter<T>
Trait Implementations§
Source§impl<T: IndexableSource> DataSource for IndexableAdapter<T>
impl<T: IndexableSource> DataSource for IndexableAdapter<T>
Source§fn id(&self) -> &str
fn id(&self) -> &str
Stable source identifier used in records, metrics, and persistence state.
Source§fn refresh(
&self,
_config: &SamplerConfig,
cursor: Option<&SourceCursor>,
limit: Option<usize>,
) -> Result<SourceSnapshot, SamplerError>
fn refresh( &self, _config: &SamplerConfig, cursor: Option<&SourceCursor>, limit: Option<usize>, ) -> Result<SourceSnapshot, SamplerError>
Source§fn reported_record_count(
&self,
_config: &SamplerConfig,
) -> Result<u128, SamplerError>
fn reported_record_count( &self, _config: &SamplerConfig, ) -> Result<u128, SamplerError>
Exact metadata record count reported by the source. Read more
Source§fn default_triplet_recipes(&self) -> Vec<TripletRecipe>
fn default_triplet_recipes(&self) -> Vec<TripletRecipe>
Optional source-provided default triplet recipes. Read more
Auto Trait Implementations§
impl<T> Freeze for IndexableAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for IndexableAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for IndexableAdapter<T>
impl<T> Sync for IndexableAdapter<T>
impl<T> Unpin for IndexableAdapter<T>where
T: Unpin,
impl<T> UnsafeUnpin for IndexableAdapter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for IndexableAdapter<T>where
T: 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
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 more