pub struct HashCache { /* private fields */ }Expand description
cache datastructure implementing Save
Trait Implementations§
Source§impl Actor for HashCache
impl Actor for HashCache
§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 more§fn start(self) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
fn start(self) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
Start a new asynchronous actor, returning its address. Read more
§fn start_default() -> Addr<Self>where
Self: Actor<Context = Context<Self>> + Default,
fn start_default() -> Addr<Self>where
Self: Actor<Context = Context<Self>> + Default,
Construct and start a new asynchronous actor, returning its
address. Read more
§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 Handler<CacheResult> for HashCache
cache PoW result
impl Handler<CacheResult> for HashCache
cache PoW result
Source§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<DeleteCaptchaResult> for HashCache
Delte a PoWConfig
impl Handler<DeleteCaptchaResult> for HashCache
Delte a PoWConfig
Source§type Result = MessageResult<DeleteCaptchaResult>
type Result = MessageResult<DeleteCaptchaResult>
The type of value that this handler will return. Read more
Source§fn handle(
&mut self,
msg: DeleteCaptchaResult,
_ctx: &mut Self::Context,
) -> Self::Result
fn handle( &mut self, msg: DeleteCaptchaResult, _ctx: &mut Self::Context, ) -> Self::Result
This method is called for every message received by this actor.
Source§impl Handler<RetrivePoW> for HashCache
Retrive PoW difficulty_factor for a PoW string
impl Handler<RetrivePoW> for HashCache
Retrive PoW difficulty_factor for a PoW string
Source§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<VerifyCaptchaResult> for HashCache
Retrive PoW difficulty_factor for a PoW string
impl Handler<VerifyCaptchaResult> for HashCache
Retrive PoW difficulty_factor for a PoW string
Source§type Result = MessageResult<VerifyCaptchaResult>
type Result = MessageResult<VerifyCaptchaResult>
The type of value that this handler will return. Read more
Source§fn handle(
&mut self,
msg: VerifyCaptchaResult,
_ctx: &mut Self::Context,
) -> Self::Result
fn handle( &mut self, msg: VerifyCaptchaResult, _ctx: &mut Self::Context, ) -> Self::Result
This method is called for every message received by this actor.
impl Save for HashCache
Auto Trait Implementations§
impl Freeze for HashCache
impl RefUnwindSafe for HashCache
impl Send for HashCache
impl Sync for HashCache
impl Unpin for HashCache
impl UnsafeUnpin for HashCache
impl UnwindSafe for HashCache
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