Struct libmcaptcha::cache::messages::RetrivePoW
source · pub struct RetrivePoW(pub VerifyCaptchaResult);
Expand description
Message to retrive the the difficulty factor for the specified string from the cache
Tuple Fields§
§0: VerifyCaptchaResult
Trait Implementations§
source§impl Handler<RetrivePoW> for HashCache
impl Handler<RetrivePoW> for HashCache
Retrive PoW difficulty_factor for a PoW string
§type Result = MessageResult<RetrivePoW>
type Result = MessageResult<RetrivePoW>
The type of value that this handler will return. Read more
source§fn handle(&mut self, msg: RetrivePoW, _ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, msg: RetrivePoW, _ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<RetrivePoW> for RedisCache
impl Handler<RetrivePoW> for RedisCache
Retrive PoW difficulty_factor for a PoW string
§type Result = MessageResult<RetrivePoW>
type Result = MessageResult<RetrivePoW>
The type of value that this handler will return. Read more
source§fn handle(&mut self, msg: RetrivePoW, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, msg: RetrivePoW, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Message for RetrivePoW
impl Message for RetrivePoW
§type Result = Receiver<Result<Option<CachedPoWConfig>, CaptchaError>>
type Result = Receiver<Result<Option<CachedPoWConfig>, CaptchaError>>
The type of value that this message will resolved with if it is
successful.
Auto Trait Implementations§
impl RefUnwindSafe for RetrivePoW
impl Send for RetrivePoW
impl Sync for RetrivePoW
impl Unpin for RetrivePoW
impl UnwindSafe for RetrivePoW
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