pub struct StreamReaderOptions {
pub max_descriptor_bytes: u64,
pub max_buffer_bytes: u64,
pub enforce_cross_machine_sync: bool,
pub max_composite_depth: usize,
}Expand description
Options for StreamReader.
Fields§
§max_descriptor_bytes: u64Maximum byte length of a single descriptor. Default: 16 MiB.
max_buffer_bytes: u64Maximum byte length of a single buffer. Default: u64::MAX (unbounded).
enforce_cross_machine_sync: boolReject buffers whose sync_mode is not [SyncMode::ProducerSynced].
Enable when the stream crosses machine boundaries.
max_composite_depth: usizeMaximum composite nesting depth for next_item.
Default: DEFAULT_MAX_COMPOSITE_DEPTH.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamReaderOptions
impl RefUnwindSafe for StreamReaderOptions
impl Send for StreamReaderOptions
impl Sync for StreamReaderOptions
impl Unpin for StreamReaderOptions
impl UnsafeUnpin for StreamReaderOptions
impl UnwindSafe for StreamReaderOptions
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