diff options
Diffstat (limited to 'src/types/tun.rs')
-rw-r--r-- | src/types/tun.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types/tun.rs b/src/types/tun.rs index b36089e..fc8044a 100644 --- a/src/types/tun.rs +++ b/src/types/tun.rs @@ -1,13 +1,13 @@ use std::error; -pub trait Tun: Send + Sync + 'static { +pub trait Tun: Send + Sync + Clone + 'static { type Error: error::Error; /// Returns the MTU of the device /// /// This function needs to be efficient (called for every read). - /// The goto implementation stragtegy is to .load an atomic variable, - /// then use e.g. netlink to update the variable in a seperate thread. + /// The goto implementation strategy is to .load an atomic variable, + /// then use e.g. netlink to update the variable in a separate thread. /// /// # Returns /// |