pub struct LimitError { /* private fields */ }Expand description
A bound that was exceeded.
Its fields are private, so Self::refused is the one way to build
one, by the core or by a caller’s code: under CR8’s test feature it
counts each (crate::testing; docs/plans/batch.md section 6, CR8).
Round 3 made them private (a public API change, before 1.0), after
three rounds each found a spelling of a literal a source scan missed.
Implementations§
Trait Implementations§
Source§impl Clone for LimitError
impl Clone for LimitError
impl Copy for LimitError
Source§impl Debug for LimitError
impl Debug for LimitError
Source§impl Display for LimitError
impl Display for LimitError
impl Eq for LimitError
Source§impl Error for LimitError
impl Error for LimitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<LimitError> for Error
impl From<LimitError> for Error
Source§fn from(source: LimitError) -> Self
fn from(source: LimitError) -> Self
Converts to this type from the input type.
Source§impl From<LimitError> for ChargeError
impl From<LimitError> for ChargeError
Source§fn from(source: LimitError) -> Self
fn from(source: LimitError) -> Self
Converts to this type from the input type.
Source§impl From<LimitError> for TreeError
impl From<LimitError> for TreeError
Source§fn from(source: LimitError) -> Self
fn from(source: LimitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LimitError
impl PartialEq for LimitError
impl StructuralPartialEq for LimitError
Auto Trait Implementations§
impl Forget for LimitError
impl Freeze for LimitError
impl Move for LimitError
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnsafeUnpin for LimitError
impl UnwindSafe for LimitError
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