Struct riker::actor::SystemChannel
source · pub struct SystemChannel<Msg: Message> { /* private fields */ }
Expand description
A specialized actor for providing Publish/Subscribe capabilities for system messages.
Implementations§
Trait Implementations§
source§impl<Msg: Message> Actor for SystemChannel<Msg>
impl<Msg: Message> Actor for SystemChannel<Msg>
type Msg = Msg
source§fn pre_start(&mut self, ctx: &Context<Msg>)
fn pre_start(&mut self, ctx: &Context<Msg>)
Invoked when an actor is being started by the system. Read more
source§fn other_receive(
&mut self,
_: &Context<Msg>,
msg: ActorMsg<Msg>,
sender: Option<ActorRef<Msg>>
)
fn other_receive(
&mut self,
_: &Context<Msg>,
msg: ActorMsg<Msg>,
sender: Option<ActorRef<Msg>>
)
Invoked when an actor receives a Riker predefined message Read more
source§fn system_receive(
&mut self,
_: &Context<Self::Msg>,
msg: SystemMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
fn system_receive(
&mut self,
_: &Context<Self::Msg>,
msg: SystemMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
Invoked when an actor receives a Riker system message Read more
source§fn 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
source§fn 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
source§fn persistence_conf(&self) -> Option<PersistenceConf>
fn persistence_conf(&self) -> Option<PersistenceConf>
Return a Some(PersistenceConf) to enable actor persistence. Read more
source§fn 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
source§fn 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
source§fn supervisor_strategy(&self) -> Strategy
fn supervisor_strategy(&self) -> Strategy
Return a supervisor strategy that will be used when handling failed child actors.