Sfoglia il codice sorgente

Add Clone impl to EthernetFrame

Closes: #163
Approved by: whitequark
Andrew Cann 7 anni fa
parent
commit
1ea5ada5df
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 }