pub struct State<P: Reference>(/* private fields */);
Expand description
The GCRA’s state about a single rate limiting history.
Trait Implementations§
Source§impl<P: Reference> ShallowCopy for State<P>
impl<P: Reference> ShallowCopy for State<P>
Source§unsafe fn shallow_copy(&mut self) -> Self
unsafe fn shallow_copy(&mut self) -> Self
Perform an aliasing copy of this value. Read more
impl<P: Eq + Reference> Eq for State<P>
impl<P: Reference> StructuralPartialEq for State<P>
Auto Trait Implementations§
impl<P> Freeze for State<P>
impl<P> !RefUnwindSafe for State<P>
impl<P> Send for State<P>
impl<P> Sync for State<P>
impl<P> Unpin for State<P>
impl<P> !UnwindSafe for State<P>
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