pub struct ContentOptions {
pub max_bytes: u64,
pub max_chunks: u64,
pub parallel: usize,
pub chunk_timeout: Duration,
}Expand description
A fetch’s bounds, macula_content_fetch’s defaults: 256 MiB, 16,384 chunks, 4 chunk streams at a time, 15 seconds per stream.
Fields§
§max_bytes: u64§max_chunks: u64§parallel: usize§chunk_timeout: DurationTrait Implementations§
Source§impl Clone for ContentOptions
impl Clone for ContentOptions
impl Copy for ContentOptions
Source§impl Debug for ContentOptions
impl Debug for ContentOptions
Source§impl Default for ContentOptions
impl Default for ContentOptions
impl Eq for ContentOptions
Source§impl PartialEq for ContentOptions
impl PartialEq for ContentOptions
impl StructuralPartialEq for ContentOptions
Auto Trait Implementations§
impl Freeze for ContentOptions
impl RefUnwindSafe for ContentOptions
impl Send for ContentOptions
impl Sync for ContentOptions
impl Unpin for ContentOptions
impl UnsafeUnpin for ContentOptions
impl UnwindSafe for ContentOptions
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