Struct riker_deadletter::DeadLettersActor
source · pub struct DeadLettersActor<Msg: Message> { /* private fields */ }
Trait Implementations
sourceimpl<Msg: Message> Actor for DeadLettersActor<Msg>
impl<Msg: Message> Actor for DeadLettersActor<Msg>
type Msg = Msg
sourcefn pre_start(&mut self, ctx: &Context<Self::Msg>)
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
Invoked when an actor is being started by the system. Read more
sourcefn other_receive(
&mut self,
_: &Context<Msg>,
msg: ActorMsg<Msg>,
_: Option<ActorRef<Msg>>
)
fn other_receive(
&mut self,
_: &Context<Msg>,
msg: ActorMsg<Msg>,
_: Option<ActorRef<Msg>>
)
Invoked when an actor receives a Riker predefined message Read more
sourcefn receive(&mut self, _: &Context<Msg>, _: Msg, _: Option<ActorRef<Msg>>)
fn receive(&mut self, _: &Context<Msg>, _: Msg, _: Option<ActorRef<Msg>>)
Invoked when an actor receives a message Read more
sourcefn post_start(&mut self, ctx: &Context<Self::Msg>)
fn post_start(&mut self, ctx: &Context<Self::Msg>)
Invoked after an actor has started. Read more
sourcefn system_receive(
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
fn system_receive(
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
Invoked when an actor receives a Riker system message Read more
sourcefn persistence_conf(&self) -> Option<PersistenceConf>
fn persistence_conf(&self) -> Option<PersistenceConf>
Return a Some(PersistenceConf) to enable actor persistence. Read more
sourcefn apply_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
fn apply_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
Invoked after an event is successfully inserted into the event store. Read more
sourcefn replay_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
fn replay_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
Invoked for each event when the actor is recovering. Read more
sourcefn supervisor_strategy(&self) -> Strategy
fn supervisor_strategy(&self) -> Strategy
Return a supervisor strategy that will be used when handling failed child actors.
sourceimpl<Msg: Message> DeadLetterProps for DeadLettersActor<Msg>
impl<Msg: Message> DeadLetterProps for DeadLettersActor<Msg>
type Msg = Msg
fn props(dl: ActorRef<Msg>) -> BoxActorProd<Msg>
Auto Trait Implementations
impl<Msg> !RefUnwindSafe for DeadLettersActor<Msg>
impl<Msg> Send for DeadLettersActor<Msg>
impl<Msg> Sync for DeadLettersActor<Msg>
impl<Msg> Unpin for DeadLettersActor<Msg>
impl<Msg> !UnwindSafe for DeadLettersActor<Msg>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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