Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ProgrammingRust/async-chat
/ functions
Functions
20 in github.com/ProgrammingRust/async-chat
⨍
Functions
20
◇
Types & classes
5
↓ 3 callers
Function
get_next_token
Given a string `input`, return `Some((token, rest))`, where `token` is the first run of non-whitespace characters in `input`, and `rest` is the rest o
src/bin/client.rs:99
↓ 3 callers
Method
send
(&self, packet: FromServer)
src/bin/server/connection.rs:60
↓ 2 callers
Function
receive_as_json
(inbound: S)
src/utils.rs:25
↓ 2 callers
Function
send_as_json
(outbound: &mut S, packet: &P)
src/utils.rs:12
↓ 1 callers
Method
get
(&self, name: &String)
src/bin/server/group_table.rs:12
↓ 1 callers
Method
get_or_create
(&self, name: Arc<String>)
src/bin/server/group_table.rs:19
↓ 1 callers
Function
handle_replies
(from_server: net::TcpStream)
src/bin/client.rs:31
↓ 1 callers
Function
handle_subscriber
(group_name: Arc<String>, mut receiver: broadcast::Receiver<Arc<String>>,
src/bin/server/group.rs:39
↓ 1 callers
Method
join
(&self, outbound: Arc<Outbound>)
src/bin/server/group.rs:19
↓ 1 callers
Function
log_error
(result: ChatResult<()>)
src/bin/server/main.rs:39
↓ 1 callers
Function
parse_command
Parse a line (presumably read from the standard input) as a `Request`.
src/bin/client.rs:72
↓ 1 callers
Method
post
(&self, message: Arc<String>)
src/bin/server/group.rs:27
↓ 1 callers
Function
send_commands
(mut to_server: net::TcpStream)
src/bin/client.rs:6
↓ 1 callers
Function
serve
(socket: TcpStream, groups: Arc<GroupTable>)
src/bin/server/connection.rs:12
Function
main
()
src/bin/client.rs:51
Function
main
()
src/bin/server/main.rs:15
Method
new
(name: Arc<String>)
src/bin/server/group.rs:14
Method
new
(to_client: TcpStream)
src/bin/server/connection.rs:56
Method
new
()
src/bin/server/group_table.rs:8
Function
test_fromclient_json
()
src/lib.rs:28