pub struct StreamOptions { /* private fields */ }Expand description
Common bounded-stream execution options.
Implementations§
Source§impl StreamOptions
impl StreamOptions
Sourcepub fn new(
chunk_points: usize,
memory_budget: MemoryBudget,
) -> RecordsResult<Self>
pub fn new( chunk_points: usize, memory_budget: MemoryBudget, ) -> RecordsResult<Self>
Creates options with an explicit positive chunk size and hard memory budget.
Sourcepub const fn with_prefetch_chunks(self, prefetch_chunks: usize) -> Self
pub const fn with_prefetch_chunks(self, prefetch_chunks: usize) -> Self
Requests bounded source prefetch. Zero disables prefetch.
Sourcepub const fn with_ordering(self, ordering: StreamOrdering) -> Self
pub const fn with_ordering(self, ordering: StreamOrdering) -> Self
Selects the required ordering contract.
Sourcepub const fn chunk_points(&self) -> usize
pub const fn chunk_points(&self) -> usize
Returns the requested maximum points per source chunk.
Sourcepub const fn memory_budget(&self) -> MemoryBudget
pub const fn memory_budget(&self) -> MemoryBudget
Returns the hard memory budget.
Sourcepub const fn prefetch_chunks(&self) -> usize
pub const fn prefetch_chunks(&self) -> usize
Returns the maximum number of prefetched chunks.
Sourcepub const fn ordering(&self) -> StreamOrdering
pub const fn ordering(&self) -> StreamOrdering
Returns the required ordering contract.
Trait Implementations§
Source§impl Clone for StreamOptions
impl Clone for StreamOptions
Source§fn clone(&self) -> StreamOptions
fn clone(&self) -> StreamOptions
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 moreSource§impl Debug for StreamOptions
impl Debug for StreamOptions
Source§impl Default for StreamOptions
impl Default for StreamOptions
Source§impl PartialEq for StreamOptions
impl PartialEq for StreamOptions
Source§fn eq(&self, other: &StreamOptions) -> bool
fn eq(&self, other: &StreamOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StreamOptions
impl StructuralPartialEq for StreamOptions
Auto Trait Implementations§
impl Freeze for StreamOptions
impl RefUnwindSafe for StreamOptions
impl Send for StreamOptions
impl Sync for StreamOptions
impl Unpin for StreamOptions
impl UnsafeUnpin for StreamOptions
impl UnwindSafe for StreamOptions
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