pub struct Feed {
pub clients: HashMap<String, Recipient<WSockMess>>,
}Expand description
The Feed is the handler of all users (clients) in the chat
Fields§
§clients: HashMap<String, Recipient<WSockMess>>Relation of ID: recipent that can handle WSockMess
Implementations§
Trait Implementations§
Source§impl Actor for Feed
impl Actor for Feed
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping state. Read moreSource§fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self>
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl Handler<ChatSockMess> for Feed
impl Handler<ChatSockMess> for Feed
Auto Trait Implementations§
impl Freeze for Feed
impl !RefUnwindSafe for Feed
impl Send for Feed
impl Sync for Feed
impl Unpin for Feed
impl !UnwindSafe for Feed
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