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
Connect(ClientId, Recipient<MessageFromServer>)A client opens a connection to the server.
Tuple Fields of Connect
Disconnect(ClientId)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
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