pub struct TooManyScopes {
pub requested: usize,
}Expand description
A connection dropped more observed scopes than MAX_OBSERVED allows.
observation() runs once per connection per turn, so its result has to stay
a two-word Copy value; letting it grow is how the composition cost goes
quadratic again (guide 3.1).
Fields§
§requested: usizeTrait Implementations§
Source§impl Clone for TooManyScopes
impl Clone for TooManyScopes
Source§fn clone(&self) -> TooManyScopes
fn clone(&self) -> TooManyScopes
Returns a duplicate 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 TooManyScopes
impl Debug for TooManyScopes
Source§impl Display for TooManyScopes
impl Display for TooManyScopes
Source§impl Error for TooManyScopes
impl Error for TooManyScopes
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 TooManyScopes
impl PartialEq for TooManyScopes
impl Copy for TooManyScopes
impl Eq for TooManyScopes
impl StructuralPartialEq for TooManyScopes
Auto Trait Implementations§
impl Freeze for TooManyScopes
impl RefUnwindSafe for TooManyScopes
impl Send for TooManyScopes
impl Sync for TooManyScopes
impl Unpin for TooManyScopes
impl UnwindSafe for TooManyScopes
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