Enum jamsocket_server::MessageFromClient [−][src]
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
A client opens a connection to the server.
Tuple Fields of Connect
A client disconnects from the server (or their connection otherwise drops.)
Tuple Fields of Disconnect
0: ClientIdA client sends a message.
Fields of Message
from_client: ClientIddata: MessageDataTrait 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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self