Struct governor::InsufficientCapacity
source · pub struct InsufficientCapacity(pub u32);
Expand description
Error indicating that the number of cells tested (the first argument) is larger than the bucket’s capacity.
This means the decision can never have a conforming result. The argument gives the maximum number of cells that could ever have a conforming result.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for InsufficientCapacity
impl Clone for InsufficientCapacity
source§fn clone(&self) -> InsufficientCapacity
fn clone(&self) -> InsufficientCapacity
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 InsufficientCapacity
impl Debug for InsufficientCapacity
source§impl Display for InsufficientCapacity
impl Display for InsufficientCapacity
source§impl Error for InsufficientCapacity
impl Error for InsufficientCapacity
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for InsufficientCapacity
impl PartialEq for InsufficientCapacity
source§fn eq(&self, other: &InsufficientCapacity) -> bool
fn eq(&self, other: &InsufficientCapacity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InsufficientCapacity
impl Eq for InsufficientCapacity
impl StructuralPartialEq for InsufficientCapacity
Auto Trait Implementations§
impl Freeze for InsufficientCapacity
impl RefUnwindSafe for InsufficientCapacity
impl Send for InsufficientCapacity
impl Sync for InsufficientCapacity
impl Unpin for InsufficientCapacity
impl UnwindSafe for InsufficientCapacity
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)