[−][src]Trait riker::actor::Actor
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
Invoked when an actor is being started by the system.
Any initialization inherent to the actor's role should be performed here.
Panics in pre_start
do not invoke the
supervision strategy and the actor will be terminated.
fn post_start(&mut self, ctx: &Context<Self::Msg>)
Invoked after an actor has started.
Any post initialization can be performed here, such as writing to a log file, emmitting metrics.
Panics in post_start
follow the supervision strategy.
fn post_stop(&mut self)
Invoked after an actor has been stopped.
fn sys_recv(&mut self, ctx: &Context<Self::Msg>, msg: SystemMsg, sender: Sender)
fn supervisor_strategy(&self) -> Strategy
Return a supervisor strategy that will be used when handling failed child actors.
Implementations on Foreign Types
impl<A: Actor + ?Sized> Actor for Box<A>
[src]
type Msg = A::Msg
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn post_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn post_stop(&mut self)
[src]
fn sys_recv(
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg,
sender: Option<BasicActorRef>
)
[src]
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg,
sender: Option<BasicActorRef>
)
fn supervisor_strategy(&self) -> Strategy
[src]
fn recv(
&mut self,
ctx: &Context<Self::Msg>,
msg: Self::Msg,
sender: Option<BasicActorRef>
)
[src]
&mut self,
ctx: &Context<Self::Msg>,
msg: Self::Msg,
sender: Option<BasicActorRef>
)
Implementors
impl Actor for EventsChannel
[src]
type Msg = ChannelMsg<SystemEvent>
fn pre_start(&mut self, ctx: &Context<ChannelMsg<SystemEvent>>)
[src]
fn recv(
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: ChannelMsg<SystemEvent>,
sender: Sender
)
[src]
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: ChannelMsg<SystemEvent>,
sender: Sender
)
fn sys_recv(
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: SystemMsg,
sender: Sender
)
[src]
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: SystemMsg,
sender: Sender
)
impl<Msg> Actor for Channel<Msg> where
Msg: Message,
[src]
Msg: Message,
type Msg = ChannelMsg<Msg>
fn pre_start(&mut self, ctx: &Context<ChannelMsg<Msg>>)
[src]
fn recv(
&mut self,
ctx: &Context<ChannelMsg<Msg>>,
msg: ChannelMsg<Msg>,
sender: Sender
)
[src]
&mut self,
ctx: &Context<ChannelMsg<Msg>>,
msg: ChannelMsg<Msg>,
sender: Sender
)
fn sys_recv(
&mut self,
_: &Context<ChannelMsg<Msg>>,
msg: SystemMsg,
sender: Sender
)
[src]
&mut self,
_: &Context<ChannelMsg<Msg>>,
msg: SystemMsg,
sender: Sender
)