summaryrefslogtreecommitdiff
path: root/src/sys/uio.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2018-01-14 09:58:24 -0800
committerBryant Mairs <bryantmairs@google.com>2018-01-28 15:35:35 -0800
commit5db605ad599a56ed79969b929732fabf03374ae1 (patch)
tree24ad3fd11ec1c2be8849296174d5519ff3679394 /src/sys/uio.rs
parent04b0978c25d323c59d687e0ded1814b19ae7c6eb (diff)
downloadnix-5db605ad599a56ed79969b929732fabf03374ae1.zip
Implement Copy/Clone for all types missing it
Diffstat (limited to 'src/sys/uio.rs')
-rw-r--r--src/sys/uio.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/uio.rs b/src/sys/uio.rs
index 7447f3ff..00ba1050 100644
--- a/src/sys/uio.rs
+++ b/src/sys/uio.rs
@@ -67,6 +67,7 @@ pub fn pread(fd: RawFd, buf: &mut [u8], offset: off_t) -> Result<usize>{
/// and [`process_vm_writev`](fn.process_vm_writev.html).
#[cfg(target_os = "linux")]
#[repr(C)]
+#[derive(Clone, Copy)]
pub struct RemoteIoVec {
/// The starting address of this slice (`iov_base`).
pub base: usize,