aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-14 19:41:11 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-14 19:41:11 +0100
commit8c5fa422280ba51fca67086dbfdb5dd6a836f98c (patch)
tree578b4e98763a732eec7a395815c6f19e2c2516ab
parentd8f38a82885a42a7af2c0ea9de542251762f7970 (diff)
add module level documentation0.1.0
-rw-r--r--src/addr.rs2
-rw-r--r--src/blocking.rs8
-rw-r--r--src/link.rs2
-rw-r--r--src/route.rs2
-rw-r--r--src/tunnel.rs2
5 files changed, 16 insertions, 0 deletions
diff --git a/src/addr.rs b/src/addr.rs
index 2c949f7..72b63c4 100644
--- a/src/addr.rs
+++ b/src/addr.rs
@@ -1,3 +1,5 @@
+//! Simple functions to add and delete IP addresses.
+
use crate::{Error, Result};
use std::net::IpAddr;
diff --git a/src/blocking.rs b/src/blocking.rs
index 3429153..4c73837 100644
--- a/src/blocking.rs
+++ b/src/blocking.rs
@@ -1,3 +1,11 @@
+//! Blocking wrappers around the asynchronous API.
+//!
+//! All functions except for members of the tunnel module internally use their
+//! async counterparts inside a temporary tokio runtime.
+//! Tunnels are already synchronous.
+//!
+//! Consult the async modules for documentation.
+
#[cfg(feature = "tunnel")]
pub use crate::tunnel;
diff --git a/src/link.rs b/src/link.rs
index 058eb37..a5b33fc 100644
--- a/src/link.rs
+++ b/src/link.rs
@@ -1,3 +1,5 @@
+//! Simple functions to add, monitor and configure network interfaces.
+
use crate::{Error, Result};
use std::time::Duration;
diff --git a/src/route.rs b/src/route.rs
index 398cd3e..00bbef8 100644
--- a/src/route.rs
+++ b/src/route.rs
@@ -1,3 +1,5 @@
+//! Simple functions to add and delete routes.
+
use crate::{Error, Result};
use std::net::{Ipv4Addr, Ipv6Addr};
diff --git a/src/tunnel.rs b/src/tunnel.rs
index df172c0..a8acdd8 100644
--- a/src/tunnel.rs
+++ b/src/tunnel.rs
@@ -1,3 +1,5 @@
+//! Owned 6in4 and 4in6 tunnels with automatic deletion on drop.
+
use crate::{Error, Result};
use std::ffi::{c_char, c_int, CString};