pub struct UploadLimits {
pub max_total_bytes: u64,
pub max_chunks: u32,
}Expand description
Caps a binding applies to one upload. Each binding supplies its own:
the native Connect server uses PACK_BODY_LIMIT and no chunk cap,
mkit serve its per-connection byte and frame caps, and the Workers
server its 64 MiB buffer cap.
Fields§
§max_total_bytes: u64Largest total_bytes a header may declare.
max_chunks: u32Most chunks accepted before the last one, inclusive.
Trait Implementations§
Source§impl Clone for UploadLimits
impl Clone for UploadLimits
impl Copy for UploadLimits
Source§impl Debug for UploadLimits
impl Debug for UploadLimits
impl Eq for UploadLimits
Source§impl PartialEq for UploadLimits
impl PartialEq for UploadLimits
impl StructuralPartialEq for UploadLimits
Auto Trait Implementations§
impl Freeze for UploadLimits
impl RefUnwindSafe for UploadLimits
impl Send for UploadLimits
impl Sync for UploadLimits
impl Unpin for UploadLimits
impl UnsafeUnpin for UploadLimits
impl UnwindSafe for UploadLimits
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