pub struct StoreConfig {
pub channel_capacity: usize,
pub max_chunk_size: usize,
pub drain_timeout: Duration,
pub max_handles: usize,
pub ttl: Duration,
}Expand description
Configuration for a HandleStore. Set once at endpoint bind time.
Fields§
§channel_capacity: usizeBody-channel capacity (in chunks). Minimum 1.
max_chunk_size: usizeMaximum byte length of a single chunk in send_chunk. Minimum 1.
drain_timeout: DurationMilliseconds to wait for a slow body reader before dropping.
max_handles: usizeMaximum handle slots per registry. Prevents unbounded growth.
ttl: DurationTTL for handle entries; expired entries are swept periodically. Zero disables sweeping.
Trait Implementations§
Source§impl Clone for StoreConfig
impl Clone for StoreConfig
Source§fn clone(&self) -> StoreConfig
fn clone(&self) -> StoreConfig
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 StoreConfig
impl Debug for StoreConfig
Auto Trait Implementations§
impl Freeze for StoreConfig
impl RefUnwindSafe for StoreConfig
impl Send for StoreConfig
impl Sync for StoreConfig
impl Unpin for StoreConfig
impl UnsafeUnpin for StoreConfig
impl UnwindSafe for StoreConfig
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