Enum jamsocket_server::MessageFromClient
source ·
[−]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)
Tuple Fields
0: ClientIdA client disconnects from the server (or their connection otherwise drops.)
Message
A client sends a message.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MessageFromClient
impl Send for MessageFromClient
impl Sync for MessageFromClient
impl Unpin for MessageFromClient
impl !UnwindSafe for MessageFromClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
