aboutsummaryrefslogtreecommitdiffstats
path: root/src/timers.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-09 15:08:26 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-09 15:08:26 +0200
commit761c46064d7510303f08cde27c9e13b07293f3af (patch)
tree7b914169725952e557223972b3f0b611c54e6829 /src/timers.rs
parentRestructure dummy implementations (diff)
downloadwireguard-rs-761c46064d7510303f08cde27c9e13b07293f3af.tar.xz
wireguard-rs-761c46064d7510303f08cde27c9e13b07293f3af.zip
Restructure IO traits.
Diffstat (limited to 'src/timers.rs')
-rw-r--r--src/timers.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timers.rs b/src/timers.rs
index 303fd35..67ece06 100644
--- a/src/timers.rs
+++ b/src/timers.rs
@@ -7,7 +7,7 @@ use hjul::{Runner, Timer};
use crate::constants::*;
use crate::router::Callbacks;
-use crate::types::{Bind, Tun};
+use crate::types::{tun, bind};
use crate::wireguard::{Peer, PeerInner};
pub struct Timers {
@@ -23,8 +23,8 @@ pub struct Timers {
impl Timers {
pub fn new<T, B>(runner: &Runner, peer: Peer<T, B>) -> Timers
where
- T: Tun,
- B: Bind,
+ T: tun::Tun,
+ B: bind::Bind,
{
// create a timer instance for the provided peer
Timers {
@@ -103,7 +103,7 @@ impl Timers {
pub struct Events<T, B>(PhantomData<(T, B)>);
-impl<T: Tun, B: Bind> Callbacks for Events<T, B> {
+impl<T: tun::Tun, B: bind::Bind> Callbacks for Events<T, B> {
type Opaque = Arc<PeerInner<B>>;
fn send(peer: &Self::Opaque, size: usize, data: bool, sent: bool) {