mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Add Clone for EasyBuf
This commit is contained in:
parent
9bb1366f33
commit
46d68f739a
@ -12,6 +12,7 @@ use io::Io;
|
|||||||
/// be handed out efficiently, each with a `'static` lifetime which keeps the
|
/// be handed out efficiently, each with a `'static` lifetime which keeps the
|
||||||
/// data alive. The buffer also supports mutation but may require bytes to be
|
/// data alive. The buffer also supports mutation but may require bytes to be
|
||||||
/// copied to complete the operation.
|
/// copied to complete the operation.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct EasyBuf {
|
pub struct EasyBuf {
|
||||||
buf: Arc<Vec<u8>>,
|
buf: Arc<Vec<u8>>,
|
||||||
start: usize,
|
start: usize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user