Struct riker_default::SimpleLogger [−][src]
pub struct SimpleLogger<Msg> where
Msg: Message, { /* fields omitted */ }
Trait Implementations
impl<Msg> LoggerProps for SimpleLogger<Msg> where
Msg: Message,
[src]
impl<Msg> LoggerProps for SimpleLogger<Msg> where
Msg: Message,
type Msg = Msg
fn props(
config: &Config
) -> Arc<Mutex<ActorProducer<Actor = Box<Actor<Msg = <SimpleLogger<Msg> as LoggerProps>::Msg> + 'static + Send>> + 'static>>
[src]
fn props(
config: &Config
) -> Arc<Mutex<ActorProducer<Actor = Box<Actor<Msg = <SimpleLogger<Msg> as LoggerProps>::Msg> + 'static + Send>> + 'static>>
impl<Msg> Actor for SimpleLogger<Msg> where
Msg: Message,
[src]
impl<Msg> Actor for SimpleLogger<Msg> where
Msg: Message,
type Msg = Msg
fn receive(
&mut self,
&Context<<SimpleLogger<Msg> as Actor>::Msg>,
<SimpleLogger<Msg> as Actor>::Msg,
Option<ActorRef<<SimpleLogger<Msg> as Actor>::Msg>>
)
[src]
fn receive(
&mut self,
&Context<<SimpleLogger<Msg> as Actor>::Msg>,
<SimpleLogger<Msg> as Actor>::Msg,
Option<ActorRef<<SimpleLogger<Msg> as Actor>::Msg>>
)
Invoked when an actor receives a message Read more
fn system_receive(
&mut self,
&Context<<SimpleLogger<Msg> as Actor>::Msg>,
msg: SystemMsg<<SimpleLogger<Msg> as Actor>::Msg>,
Option<ActorRef<<SimpleLogger<Msg> as Actor>::Msg>>
)
[src]
fn system_receive(
&mut self,
&Context<<SimpleLogger<Msg> as Actor>::Msg>,
msg: SystemMsg<<SimpleLogger<Msg> as Actor>::Msg>,
Option<ActorRef<<SimpleLogger<Msg> as Actor>::Msg>>
)
Invoked when an actor receives a Riker system message Read more
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
Invoked when an actor is being started by the system. Read more
fn post_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn post_start(&mut self, ctx: &Context<Self::Msg>)
Invoked after an actor has started. Read more
fn post_stop(&mut self)
[src]
fn post_stop(&mut self)
Invoked after an actor has been stopped.
fn other_receive(
&mut self,
ctx: &Context<Self::Msg>,
msg: ActorMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
[src]
fn other_receive(
&mut self,
ctx: &Context<Self::Msg>,
msg: ActorMsg<Self::Msg>,
sender: Option<ActorRef<Self::Msg>>
)
Invoked when an actor receives a Riker predefined message Read more
fn persistence_conf(&self) -> Option<PersistenceConf>
[src]
fn persistence_conf(&self) -> Option<PersistenceConf>
Return a Some(PersistenceConf) to enable actor persistence. Read more
fn apply_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
[src]
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
fn replay_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
[src]
fn replay_event(&mut self, ctx: &Context<Self::Msg>, evt: Self::Msg)
Invoked for each event when the actor is recovering. Read more
fn supervisor_strategy(&self) -> Strategy
[src]
fn supervisor_strategy(&self) -> Strategy
Return a supervisor strategy that will be used when handling failed child actors.
Auto Trait Implementations
impl<Msg> Send for SimpleLogger<Msg>
impl<Msg> Send for SimpleLogger<Msg>
impl<Msg> Sync for SimpleLogger<Msg> where
Msg: Sync,
impl<Msg> Sync for SimpleLogger<Msg> where
Msg: Sync,