mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +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
|
||||
/// data alive. The buffer also supports mutation but may require bytes to be
|
||||
/// copied to complete the operation.
|
||||
#[derive(Clone)]
|
||||
pub struct EasyBuf {
|
||||
buf: Arc<Vec<u8>>,
|
||||
start: usize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user