#[non_exhaustive]pub enum LimitExceeded {
Window {
requested: u64,
limit: u64,
},
Output {
limit: u64,
},
Work {
needed: u64,
remaining: u64,
},
}Available on crate feature
caller-workspace only.Expand description
A limit from DecodeLimits or WorkBudget that refused the stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Window
A frame declared a window above DecodeLimits::max_window_size.
Output
The stream would produce more than DecodeLimits::max_output.
Work
The next unit of work costs more than the budget has left.
Trait Implementations§
Source§impl Clone for LimitExceeded
impl Clone for LimitExceeded
impl Copy for LimitExceeded
Source§impl Debug for LimitExceeded
impl Debug for LimitExceeded
impl Eq for LimitExceeded
Source§impl PartialEq for LimitExceeded
impl PartialEq for LimitExceeded
impl StructuralPartialEq for LimitExceeded
Auto Trait Implementations§
impl Freeze for LimitExceeded
impl RefUnwindSafe for LimitExceeded
impl Send for LimitExceeded
impl Sync for LimitExceeded
impl Unpin for LimitExceeded
impl UnsafeUnpin for LimitExceeded
impl UnwindSafe for LimitExceeded
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