pub struct Charcoal {
pub players: Arc<RwLock<HashMap<String, PlayerObject>>>,
pub tx: Sender<IPCData>,
pub rx: Receiver<IPCData>,
}Expand description
Stores Charcoal instance
Fields§
§players: Arc<RwLock<HashMap<String, PlayerObject>>>§tx: Sender<IPCData>§rx: Receiver<IPCData>Auto Trait Implementations§
impl Freeze for Charcoal
impl !RefUnwindSafe for Charcoal
impl Send for Charcoal
impl Sync for Charcoal
impl Unpin for Charcoal
impl !UnwindSafe for Charcoal
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