pub enum UsageQueryError {
LimitOutOfRange(u16),
DepthOutOfRange(u32),
}Expand description
An invalid DependencyUsageQuery.
Variants§
LimitOutOfRange(u16)
The site limit is not in 1..=500.
DepthOutOfRange(u32)
The closure depth is not in 1..=10.
Trait Implementations§
Source§impl Clone for UsageQueryError
impl Clone for UsageQueryError
Source§impl Debug for UsageQueryError
impl Debug for UsageQueryError
Source§impl Display for UsageQueryError
impl Display for UsageQueryError
impl Eq for UsageQueryError
Source§impl Error for UsageQueryError
impl Error for UsageQueryError
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 PartialEq for UsageQueryError
impl PartialEq for UsageQueryError
impl StructuralPartialEq for UsageQueryError
Auto Trait Implementations§
impl Freeze for UsageQueryError
impl RefUnwindSafe for UsageQueryError
impl Send for UsageQueryError
impl Sync for UsageQueryError
impl Unpin for UsageQueryError
impl UnsafeUnpin for UsageQueryError
impl UnwindSafe for UsageQueryError
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more