pub struct StreamCacheConfig {
pub threshold: usize,
}Expand description
Configuration for StreamCacheService.
Controls the maximum bytes a Body::Stream may consume when materialized
into Body::Bytes. Can be set globally via [stream_caching] in Camel.toml
or per-step via stream_cache: { threshold: N } in YAML routes.
Fields§
§threshold: usizeMaximum bytes to buffer when materializing a stream.
Implementations§
Trait Implementations§
Source§impl Clone for StreamCacheConfig
impl Clone for StreamCacheConfig
Source§fn clone(&self) -> StreamCacheConfig
fn clone(&self) -> StreamCacheConfig
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 StreamCacheConfig
impl Debug for StreamCacheConfig
Source§impl Default for StreamCacheConfig
impl Default for StreamCacheConfig
impl Copy for StreamCacheConfig
Auto Trait Implementations§
impl Freeze for StreamCacheConfig
impl RefUnwindSafe for StreamCacheConfig
impl Send for StreamCacheConfig
impl Sync for StreamCacheConfig
impl Unpin for StreamCacheConfig
impl UnsafeUnpin for StreamCacheConfig
impl UnwindSafe for StreamCacheConfig
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