pub enum MessageTarget {
Client(ClientId),
Channel,
Server,
}
Expand description
Target for message sending
Variants§
Client(ClientId)
Send to client
Channel
Send to current channel of this client. You have to join the channel you want to send a message to.
Server
Send to whole server
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessageTarget
impl RefUnwindSafe for MessageTarget
impl Send for MessageTarget
impl Sync for MessageTarget
impl Unpin for MessageTarget
impl UnwindSafe for MessageTarget
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