Commit graph

13 commits

Author SHA1 Message Date
Nikolay Kim
5866014e75 Make copy_from_slice universal 2022-02-01 00:07:41 +06:00
Nikolay Kim
c56bd776d2 Remove unused code, update tests 2022-01-31 22:25:17 +06:00
Nikolay Kim
767dd91b7e Fix conversion from BytesVec to BytesMut and back (BytesVec::with_bytes_mut()) 2022-01-31 15:17:16 +06:00
Nikolay Kim
1baf305b1f Update bytes tests 2022-01-31 14:49:29 +06:00
Nikolay Kim
a2a5899bbe Add BytesVec type 2022-01-29 23:53:13 +06:00
Juan Aguilar
2439797fcf
Implement std::error::Error and fix minor issues (#99)
* fix clippy issues

* implement std error for ntex errors and bound WebResponseError

* fix minor issues
2022-01-25 22:27:18 +06:00
Nikolay Kim
7680c5482e Rename Pool::is_pending() to is_ready(); use u32 for read/write params 2022-01-25 17:19:19 +06:00
Nikolay Kim
15025b89c1 fmt 2021-12-24 03:54:57 +06:00
Nikolay Kim
d89f1c29c6 better api usability 2021-12-03 01:34:41 +06:00
Nikolay Kim
42b8292ecd
Refactor bytes impl (#64)
* remove mut api for Bytes

* refactor Vec layout

* track allocations in memory pools

* integrate memory pools to framed

* add pool async readiness polling

* optimize readiness check

* use memory pool in framed dispatcher
2021-12-02 21:09:10 +06:00
Nikolay Kim
709cd3216b proper use of NonNull 2021-06-27 19:39:08 +06:00
Nikolay Kim
ace681ba74 Reduce size of Option<Bytes> by using NonNull 2021-06-27 18:31:48 +06:00
Nikolay Kim
45463f209b fork bytes crate 2021-06-26 00:14:43 +06:00