pub struct StreamingOptions {
pub channel_capacity: Option<usize>,
pub max_chunk_size_bytes: Option<usize>,
pub drain_timeout_ms: Option<u64>,
pub handle_ttl_ms: Option<u64>,
}Expand description
Body-streaming and handle-store configuration.
Fields§
§channel_capacity: Option<usize>Capacity (in chunks) of each body channel. Default: 32.
max_chunk_size_bytes: Option<usize>Maximum byte length of a single chunk in send_chunk. Default: 65536.
drain_timeout_ms: Option<u64>Milliseconds to wait for a slow body reader. Default: 30000.
handle_ttl_ms: Option<u64>TTL in ms for slab handle entries. 0 disables sweeping. Default: 300000.
Trait Implementations§
Source§impl Clone for StreamingOptions
impl Clone for StreamingOptions
Source§fn clone(&self) -> StreamingOptions
fn clone(&self) -> StreamingOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamingOptions
impl Debug for StreamingOptions
Source§impl Default for StreamingOptions
impl Default for StreamingOptions
Source§fn default() -> StreamingOptions
fn default() -> StreamingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingOptions
impl RefUnwindSafe for StreamingOptions
impl Send for StreamingOptions
impl Sync for StreamingOptions
impl Unpin for StreamingOptions
impl UnsafeUnpin for StreamingOptions
impl UnwindSafe for StreamingOptions
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