pub struct StreamConfig {
pub batch_size: u64,
pub max_batch_size: u64,
pub min_batch_size: u64,
pub concurrency: usize,
pub response_bytes_ceiling: u64,
pub response_bytes_floor: u64,
}Expand description
Configuration for concurrent streaming.
Fields§
§batch_size: u64Number of slots to request per chunk.
max_batch_size: u64Maximum batch size (for adaptive sizing).
min_batch_size: u64Minimum batch size (for adaptive sizing).
concurrency: usizeNumber of concurrent in-flight requests.
response_bytes_ceiling: u64Response byte threshold above which batch size shrinks.
response_bytes_floor: u64Response byte threshold below which batch size grows.
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl Debug for StreamConfig
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
impl UnwindSafe for StreamConfig
Blanket Implementations§
impl<T> Allocation for T
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