Explorar el Código

Add Clone impl to EthernetFrame

Closes: #163
Approved by: whitequark
Andrew Cann hace 7 años
padre
commit
1ea5ada5df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/wire/ethernet.rs

+ 1 - 1
src/wire/ethernet.rs

@@ -77,7 +77,7 @@ impl fmt::Display for Address {
 }
 
 /// A read/write wrapper around an Ethernet II frame buffer.
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 pub struct Frame<T: AsRef<[u8]>> {
     buffer: T
 }