Explorar o código

Add Clone impl to EthernetFrame

Closes: #163
Approved by: whitequark
Andrew Cann %!s(int64=7) %!d(string=hai) anos
pai
achega
1ea5ada5df
Modificáronse 1 ficheiros con 1 adicións e 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
 }