Skip to main content

batman_robin/
lib.rs

1//! # Batman-Robin Library
2//!
3//! This crate provides a Rust interface to **batman-adv** mesh networking, exposing
4//! both low-level netlink operations and a high-level `RobinClient` for CLI or programmatic use.
5//!
6//! ## Modules
7//!
8//! - `commands` - Internal implementation of batman-adv commands (netlink message builders, parsing, etc.).
9//! - `error` - Defines `Error`, the unified error type for all operations.
10//! - `netlink` - Low-level wrappers around netlink sockets, generic netlink messages, and attribute builders.
11//! - `client` - High-level API providing the `Client` struct for interacting with mesh networks.
12//! - `model` - Data structures representing interfaces, neighbors, originators, gateways, translation tables, etc.
13//! - `cli` - Command-line interface modules (only included when building the binary).
14
15mod client;
16mod commands;
17mod error;
18mod netlink;
19
20pub mod cli;
21pub mod model;
22
23pub use client::Client;
24pub use error::Error;
25pub use model::*;