pub enum ChannelMsg<Msg: Message> {
Publish(Publish<Msg>),
Subscribe(Subscribe<Msg>),
Unsubscribe(Unsubscribe<Msg>),
UnsubscribeAll(UnsubscribeAll<Msg>),
}Variants§
Publish(Publish<Msg>)
Publish message
Subscribe(Subscribe<Msg>)
Subscribe given ActorRef to a topic on a channel
Unsubscribe(Unsubscribe<Msg>)
Unsubscribe the given ActorRef from a topic on a channel
UnsubscribeAll(UnsubscribeAll<Msg>)
Unsubscribe the given ActorRef from all topics on a channel
Trait Implementations§
Source§impl<Msg: Clone + Message> Clone for ChannelMsg<Msg>
impl<Msg: Clone + Message> Clone for ChannelMsg<Msg>
Source§fn clone(&self) -> ChannelMsg<Msg>
fn clone(&self) -> ChannelMsg<Msg>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Msg: Message> Into<ChannelMsg<Msg>> for Publish<Msg>
impl<Msg: Message> Into<ChannelMsg<Msg>> for Publish<Msg>
Source§fn into(self) -> ChannelMsg<Msg>
fn into(self) -> ChannelMsg<Msg>
Converts this type into the (usually inferred) input type.
Source§impl<Msg: Message> Into<ChannelMsg<Msg>> for Subscribe<Msg>
impl<Msg: Message> Into<ChannelMsg<Msg>> for Subscribe<Msg>
Source§fn into(self) -> ChannelMsg<Msg>
fn into(self) -> ChannelMsg<Msg>
Converts this type into the (usually inferred) input type.
Source§impl<Msg: Message> Into<ChannelMsg<Msg>> for Unsubscribe<Msg>
impl<Msg: Message> Into<ChannelMsg<Msg>> for Unsubscribe<Msg>
Source§fn into(self) -> ChannelMsg<Msg>
fn into(self) -> ChannelMsg<Msg>
Converts this type into the (usually inferred) input type.
Source§impl<Msg: Message> Into<ChannelMsg<Msg>> for UnsubscribeAll<Msg>
impl<Msg: Message> Into<ChannelMsg<Msg>> for UnsubscribeAll<Msg>
Source§fn into(self) -> ChannelMsg<Msg>
fn into(self) -> ChannelMsg<Msg>
Converts this type into the (usually inferred) input type.
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
Auto Trait Implementations§
impl<Msg> Freeze for ChannelMsg<Msg>where
Msg: Freeze,
impl<Msg> !RefUnwindSafe for ChannelMsg<Msg>
impl<Msg> Send for ChannelMsg<Msg>
impl<Msg> !Sync for ChannelMsg<Msg>
impl<Msg> Unpin for ChannelMsg<Msg>where
Msg: Unpin,
impl<Msg> !UnwindSafe for ChannelMsg<Msg>
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