MCPcopy Create free account
hub / github.com/Apress/practical-rust-web-projects / Client

Class Client

Ch04/websocket/examples/unresponsive_client.rs:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3use ws::{connect, CloseCode, Frame, Message, OpCode, Result};
4
5struct Client {
6 out: ws::Sender,
7}
8impl ws::Handler for Client {
9 fn on_frame(
10 &mut self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected