pub struct LoaderConfig {
pub cache_bytes: usize,
pub queue_capacity: usize,
pub max_input_bytes: usize,
pub decode: DecodeOptions,
}Expand description
Bounds shared by every request to a Loader.
Fields§
§cache_bytes: usizeRetained cache-data budget in bytes. Default 64 MiB; zero disables caching.
queue_capacity: usizeRequests waiting behind the single active decode. Default 16; must be > 0.
max_input_bytes: usizeEncoded bytes per request, checked before reading an entire file. Default 64 MiB.
Decoder buffers/output are separately bounded by decode.limits.
decode: DecodeOptionsFixed for this loader so cached data cannot bypass per-request decode limits.
Trait Implementations§
Source§impl Clone for LoaderConfig
impl Clone for LoaderConfig
Source§fn clone(&self) -> LoaderConfig
fn clone(&self) -> LoaderConfig
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 LoaderConfig
impl Debug for LoaderConfig
Auto Trait Implementations§
impl Freeze for LoaderConfig
impl RefUnwindSafe for LoaderConfig
impl Send for LoaderConfig
impl Sync for LoaderConfig
impl Unpin for LoaderConfig
impl UnsafeUnpin for LoaderConfig
impl UnwindSafe for LoaderConfig
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