pub struct EventsChannel(/* private fields */);Expand description
A specialized channel that publishes messages as system messages
Trait Implementations§
Source§impl Actor for EventsChannel
impl Actor for EventsChannel
type Msg = ChannelMsg<SystemEvent>
Source§fn pre_start(&mut self, ctx: &Context<ChannelMsg<SystemEvent>>)
fn pre_start(&mut self, ctx: &Context<ChannelMsg<SystemEvent>>)
Invoked when an actor is being started by the system. Read more
Source§fn recv(
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: ChannelMsg<SystemEvent>,
sender: Sender,
)
fn recv( &mut self, ctx: &Context<ChannelMsg<SystemEvent>>, msg: ChannelMsg<SystemEvent>, sender: Sender, )
Invoked when an actor receives a message Read more
Source§fn sys_recv(
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: SystemMsg,
sender: Sender,
)
fn sys_recv( &mut self, ctx: &Context<ChannelMsg<SystemEvent>>, msg: SystemMsg, sender: Sender, )
Invoked when an actor receives a system 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 supervisor_strategy(&self) -> Strategy
fn supervisor_strategy(&self) -> Strategy
Return a supervisor strategy that will be used when handling failed child actors.
Source§impl Default for EventsChannel
impl Default for EventsChannel
Source§fn default() -> EventsChannel
fn default() -> EventsChannel
Returns the “default value” for a type. Read more
Source§impl Receive<ChannelMsg<SystemEvent>> for EventsChannel
impl Receive<ChannelMsg<SystemEvent>> for EventsChannel
type Msg = ChannelMsg<SystemEvent>
Source§fn receive(
&mut self,
ctx: &Context<ChannelMsg<SystemEvent>>,
msg: Self::Msg,
sender: Sender,
)
fn receive( &mut self, ctx: &Context<ChannelMsg<SystemEvent>>, msg: Self::Msg, sender: Sender, )
Invoked when an actor receives a message Read more
Source§impl Receive<Publish<SystemEvent>> for EventsChannel
impl Receive<Publish<SystemEvent>> for EventsChannel
type Msg = ChannelMsg<SystemEvent>
Source§fn receive(
&mut self,
_ctx: &Context<ChannelMsg<SystemEvent>>,
msg: Publish<SystemEvent>,
_sender: Sender,
)
fn receive( &mut self, _ctx: &Context<ChannelMsg<SystemEvent>>, msg: Publish<SystemEvent>, _sender: Sender, )
Invoked when an actor receives a message Read more
Auto Trait Implementations§
impl Freeze for EventsChannel
impl !RefUnwindSafe for EventsChannel
impl Send for EventsChannel
impl !Sync for EventsChannel
impl Unpin for EventsChannel
impl !UnwindSafe for EventsChannel
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