Struct blaze_pk::SimpleCounter
source · [−]pub struct SimpleCounter { /* private fields */ }
Expand description
Simple counter which is just backed by a u16 value that is incremented on each request
Implementations
sourceimpl SimpleCounter
impl SimpleCounter
sourcepub fn new() -> SimpleCounter
pub fn new() -> SimpleCounter
Creates a new simple counter
Trait Implementations
sourceimpl RequestCounter for SimpleCounter
impl RequestCounter for SimpleCounter
Auto Trait Implementations
impl RefUnwindSafe for SimpleCounter
impl Send for SimpleCounter
impl Sync for SimpleCounter
impl Unpin for SimpleCounter
impl UnwindSafe for SimpleCounter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more