pub struct MemoryStoreActor { /* private fields */ }Expand description
Actor for memory store
Implementations§
Trait Implementations§
Source§impl Actor for MemoryStoreActor
impl Actor for MemoryStoreActor
Source§type Context = Context<MemoryStoreActor>
type Context = Context<MemoryStoreActor>
Actor execution context type
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>(arb: &Arbiter, f: F) -> Addr<Self>
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl From<MemoryStore> for MemoryStoreActor
impl From<MemoryStore> for MemoryStoreActor
Source§fn from(store: MemoryStore) -> Self
fn from(store: MemoryStore) -> Self
Converts to this type from the input type.
Source§impl Handler<ActorMessage> for MemoryStoreActor
impl Handler<ActorMessage> for MemoryStoreActor
Source§impl Supervised for MemoryStoreActor
impl Supervised for MemoryStoreActor
Source§fn restarting(&mut self, _: &mut Self::Context)
fn restarting(&mut self, _: &mut Self::Context)
Called when the supervisor restarts a failed actor.
Auto Trait Implementations§
impl Freeze for MemoryStoreActor
impl !RefUnwindSafe for MemoryStoreActor
impl Send for MemoryStoreActor
impl Sync for MemoryStoreActor
impl Unpin for MemoryStoreActor
impl !UnwindSafe for MemoryStoreActor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more