pub enum Body {
Complete(Vec<u8>),
OverLimit {
limit: u64,
size: u64,
},
}Expand description
What read_bounded found in a request body.
Variants§
Complete(Vec<u8>)
The whole body, which was within the ceiling (or there was none).
OverLimit
The body was larger than the ceiling. Nothing was handed on; the remainder was drained so the client can read the refusal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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