summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-routing/src/debounce.rs1
-rw-r--r--talpid-routing/src/lib.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/talpid-routing/src/debounce.rs b/talpid-routing/src/debounce.rs
index fe51447624..59ac74f4b3 100644
--- a/talpid-routing/src/debounce.rs
+++ b/talpid-routing/src/debounce.rs
@@ -28,6 +28,7 @@ enum BurstGuardEvent {
}
impl BurstGuard {
+ /// Create a new burst guard
pub fn new<F: Fn() + Send + 'static>(
buffer_period: Duration,
longest_buffer_period: Duration,
diff --git a/talpid-routing/src/lib.rs b/talpid-routing/src/lib.rs
index f15489fcb6..684f98a262 100644
--- a/talpid-routing/src/lib.rs
+++ b/talpid-routing/src/lib.rs
@@ -6,7 +6,8 @@ use ipnetwork::IpNetwork;
use std::{fmt, net::IpAddr};
#[cfg(any(target_os = "windows", target_os = "macos"))]
-mod debounce;
+/// Burst guard
+pub mod debounce;
#[cfg(target_os = "windows")]
#[path = "windows/mod.rs"]