libwisp 0.2.0

a simple-to-use wisp rust library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Async Function: WispReadPkt

Reads a raw binary packet from the Wisp connection into a buffer.

- `ws_ctx` - mutable reference to the current [`WispContext`]./WispContext.md.
- `read_buf` - mutable byte buffer to store the received data.

**Returns:**  
`Result<usize, Box<dyn std::error::Error>>` — number of bytes read into the buffer.

---

See also:

- [`WispSendPkt`]./WispSendPkt.md
- [`WispContext`]./WispContext.md