mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-20 00:00:10 +02:00
Freshen up buf API
This commit is contained in:
+3
-5
@@ -7,18 +7,16 @@ pub mod str;
|
||||
|
||||
pub use buf::{
|
||||
Buf,
|
||||
BufExt,
|
||||
MutBuf,
|
||||
MutBufExt,
|
||||
ByteBuf,
|
||||
MutByteBuf,
|
||||
RingBuf,
|
||||
ROByteBuf,
|
||||
SliceBuf,
|
||||
MutSliceBuf,
|
||||
Source,
|
||||
Sink,
|
||||
Take,
|
||||
ReadExt,
|
||||
WriteExt,
|
||||
};
|
||||
pub use str::{
|
||||
ByteStr,
|
||||
@@ -35,7 +33,7 @@ use std::u32;
|
||||
|
||||
pub mod traits {
|
||||
//! All traits are re-exported here to allow glob imports.
|
||||
pub use {Buf, BufExt, MutBuf, MutBufExt, ByteStr, ToBytes};
|
||||
pub use {Buf, MutBuf, ByteStr, ToBytes};
|
||||
}
|
||||
|
||||
const MAX_CAPACITY: usize = u32::MAX as usize;
|
||||
|
||||
Reference in New Issue
Block a user