MCPcopy Create free account
hub / github.com/actix/examples / Message

Class Message

websockets/chat-tcp/src/server.rs:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#[derive(Message)]
30#[rtype(result = "()")]
31pub struct Message {
32 /// Id of the client session
33 pub id: u64,
34 /// Peer message
35 pub msg: String,
36 /// Room name
37 pub room: String,
38}
39
40/// List of available rooms
41pub struct ListRooms;

Callers 2

send_messageMethod · 0.70
parse_client_commandFunction · 0.70

Implementers 1

server.rswebsockets/chat-tcp/src/server.rs

Calls

no outgoing calls

Tested by

no test coverage detected