pub enum Message {
NewClient((u32, Arc<Client>)),
Message((u32, String)),
Disconnect(u32),
}
Variants§
NewClient((u32, Arc<Client>))
A new client just connected to the server
Message((u32, String))
Some client just sent a message
Disconnect(u32)
A client just disconnected
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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