use actix::Recipient; use specs::{Component, VecStorage}; use crate::EncodedMessage; /// An endpoint to a client's connection. #[derive(Component)] #[storage(VecStorage)] pub struct AddrComp(pub Recipient); impl AddrComp { /// Create a component of an endpoint to a client's connection. pub fn new(addr: &Recipient) -> Self { Self(addr.to_owned()) } }