pub struct HashCache { /* private fields */ }
Expand description
cache datastructure implementing Save
Trait Implementations
sourceimpl Actor for HashCache
impl Actor for HashCache
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.
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> where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
Start new actor in arbiter’s thread.
sourceimpl 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
sourcefn 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.
sourceimpl Handler<DeleteCaptchaResult> for HashCache
impl Handler<DeleteCaptchaResult> for HashCache
Delte a PoWConfig
type Result = MessageResult<DeleteCaptchaResult>
type Result = MessageResult<DeleteCaptchaResult>
The type of value that this handler will return. Read more
sourcefn 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.
sourceimpl 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
sourcefn 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.
sourceimpl Handler<VerifyCaptchaResult> for HashCache
impl Handler<VerifyCaptchaResult> for HashCache
Retrive PoW difficulty_factor for a PoW string
type Result = MessageResult<VerifyCaptchaResult>
type Result = MessageResult<VerifyCaptchaResult>
The type of value that this handler will return. Read more
sourcefn 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 RefUnwindSafe for HashCache
impl Send for HashCache
impl Sync for HashCache
impl Unpin for HashCache
impl UnwindSafe for HashCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more