pub struct LegacyBoundedSource<S> { /* private fields */ }Expand description
Adapts an existing record source without changing its public trait.
Implementations§
Source§impl<S: SpatialRecordSource> LegacyBoundedSource<S>
impl<S: SpatialRecordSource> LegacyBoundedSource<S>
Sourcepub fn try_new(
source: S,
options: StreamOptions,
cancellation: CancellationToken,
) -> RecordsResult<Self>
pub fn try_new( source: S, options: StreamOptions, cancellation: CancellationToken, ) -> RecordsResult<Self>
Wraps source, reserving its declared maximum before each pull.
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consumes the adapter and returns the legacy source.
Trait Implementations§
Source§impl<S: SpatialRecordSource> BoundedSpatialRecordSource for LegacyBoundedSource<S>
impl<S: SpatialRecordSource> BoundedSpatialRecordSource for LegacyBoundedSource<S>
Source§fn schema(&self) -> &SchemaDescriptor
fn schema(&self) -> &SchemaDescriptor
Schema shared by every emitted record.
Source§fn options(&self) -> &StreamOptions
fn options(&self) -> &StreamOptions
Validated execution options.
Source§fn memory_tracker(&self) -> &MemoryTracker
fn memory_tracker(&self) -> &MemoryTracker
Exact tracker shared by emitted chunk leases.
Source§fn cancellation_token(&self) -> CancellationToken
fn cancellation_token(&self) -> CancellationToken
Cooperative cancellation state checked at chunk boundaries.
Source§fn max_chunk_bytes(&self) -> u64
fn max_chunk_bytes(&self) -> u64
Conservative maximum resident bytes for one emitted chunk.
Source§fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
Returns the next leased chunk, or
None after an explicit end.Auto Trait Implementations§
impl<S> Freeze for LegacyBoundedSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for LegacyBoundedSource<S>where
S: RefUnwindSafe,
impl<S> Send for LegacyBoundedSource<S>where
S: Send,
impl<S> Sync for LegacyBoundedSource<S>where
S: Sync,
impl<S> Unpin for LegacyBoundedSource<S>where
S: Unpin,
impl<S> UnsafeUnpin for LegacyBoundedSource<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for LegacyBoundedSource<S>where
S: 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