pub struct WSockMess {
pub msg: String,
pub sender: String,
}Expand description
WebSocket Message, A Message to a WebSocket in the client side(see public/script/chat.js)
Fields§
§msg: String§sender: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WSockMess
impl RefUnwindSafe for WSockMess
impl Send for WSockMess
impl Sync for WSockMess
impl Unpin for WSockMess
impl UnwindSafe for WSockMess
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