pub enum MessageFromClient {
Connect(ClientId, Recipient<MessageFromServer>),
Disconnect(ClientId),
Message {
from_client: ClientId,
data: MessageData,
},
}Expand description
Represents a message or event initiated by a client.
Variants§
Connect(ClientId, Recipient<MessageFromServer>)
A client opens a connection to the server.
Disconnect(ClientId)
A client disconnects from the server (or their connection otherwise drops.)
Message
A client sends a message.
Trait Implementations§
source§impl Clone for MessageFromClient
impl Clone for MessageFromClient
source§fn clone(&self) -> MessageFromClient
fn clone(&self) -> MessageFromClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more