#[repr(u32)]pub enum LimitBehavior {
ThrowError = 0,
Continue = 1,
}
Expand description
The behavior of Intercept
when a file size or count limit is exceeded.
Variants§
ThrowError = 0
Return an error from the middleware describing the issue.
Continue = 1
Ignore the limit.
In the case of file size limits, the offending file will be truncated in the result.
In the case of file count limits, the request will be completed.
Trait Implementations§
Source§impl Clone for LimitBehavior
impl Clone for LimitBehavior
Source§fn clone(&self) -> LimitBehavior
fn clone(&self) -> LimitBehavior
Returns a copy of the value. Read more
1.0.0 · 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 LimitBehavior
impl Debug for LimitBehavior
impl Copy for LimitBehavior
Auto Trait Implementations§
impl Freeze for LimitBehavior
impl RefUnwindSafe for LimitBehavior
impl Send for LimitBehavior
impl Sync for LimitBehavior
impl Unpin for LimitBehavior
impl UnwindSafe for LimitBehavior
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