pub struct Counter(/* private fields */);
Expand description
This struct represents the mCaptcha state and is used to configure leaky-bucket lifetime and manage defense
Trait Implementations§
source§impl Actor for Counter
impl Actor for Counter
source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping
state. Read moresource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
source§impl<'de> Deserialize<'de> for Counter
impl<'de> Deserialize<'de> for Counter
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Handler<AddVisitor> for Counter
impl Handler<AddVisitor> for Counter
§type Result = MessageResult<AddVisitor>
type Result = MessageResult<AddVisitor>
The type of value that this handler will return. Read more
source§impl Handler<GetCurrentVisitorCount> for Counter
impl Handler<GetCurrentVisitorCount> for Counter
§type Result = MessageResult<GetCurrentVisitorCount>
type Result = MessageResult<GetCurrentVisitorCount>
The type of value that this handler will return. Read more
source§impl Handler<GetInternalData> for Counter
impl Handler<GetInternalData> for Counter
§type Result = MessageResult<GetInternalData>
type Result = MessageResult<GetInternalData>
The type of value that this handler will return. Read more
source§impl Handler<SetInternalData> for Counter
impl Handler<SetInternalData> for Counter
§type Result = MessageResult<SetInternalData>
type Result = MessageResult<SetInternalData>
The type of value that this handler will return. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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