Struct libmcaptcha::cache::messages::CacheResult
source · pub struct CacheResult {
pub token: String,
pub key: String,
pub duration: u64,
}
Expand description
Message to cache captcha result and the captcha key for which it was generated
Fields§
§token: String
§key: String
key is mCaptcha identifier
duration: u64
Trait Implementations§
source§impl<'de> Deserialize<'de> for CacheResult
impl<'de> Deserialize<'de> for CacheResult
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 From<CachedPoWConfig> for CacheResult
impl From<CachedPoWConfig> for CacheResult
source§fn from(c: CachedPoWConfig) -> Self
fn from(c: CachedPoWConfig) -> Self
Converts to this type from the input type.
source§impl Handler<CacheResult> for HashCache
impl Handler<CacheResult> for HashCache
cache PoW result
§type Result = MessageResult<CacheResult>
type Result = MessageResult<CacheResult>
The type of value that this handler will return. Read more
source§fn handle(&mut self, msg: CacheResult, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, msg: CacheResult, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<CacheResult> for RedisCache
impl Handler<CacheResult> for RedisCache
cache PoW result
§type Result = MessageResult<CacheResult>
type Result = MessageResult<CacheResult>
The type of value that this handler will return. Read more
source§fn handle(&mut self, msg: CacheResult, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, msg: CacheResult, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Message for CacheResult
impl Message for CacheResult
§type Result = Receiver<Result<(), CaptchaError>>
type Result = Receiver<Result<(), CaptchaError>>
The type of value that this message will resolved with if it is
successful.
Auto Trait Implementations§
impl RefUnwindSafe for CacheResult
impl Send for CacheResult
impl Sync for CacheResult
impl Unpin for CacheResult
impl UnwindSafe for CacheResult
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