reticulum-rs 0.1.3

Reticulum-rs is a Rust implementation of the Reticulum Network Stack - a cryptographic, decentralised, and resilient mesh networking protocol designed for communication over any physical layer. This project is open source and community-owned, focused on bringing Reticulum capabilities to the Rust ecosystem with clear APIs, reproducible behavior, and portable deployment options.
Documentation
//! Extension interfaces for out-of-tree hardware/runtime adapters.
//!
//! Proprietary or platform-specific drivers should implement these traits in
//! external crates and integrate through the public interface manager API.

use super::AddressHash;

/// Minimal metadata contract for an interface driver.
pub trait InterfaceDriver: Send + Sync {
    /// Stable driver identifier for metrics/config mapping.
    fn driver_id(&self) -> &'static str;

    /// Link MTU supported by this driver.
    fn mtu(&self) -> usize;
}

/// Factory contract used by host runtimes to register external drivers.
pub trait InterfaceDriverFactory: Send + Sync {
    type Driver: InterfaceDriver;

    fn create(&self, local_address: AddressHash) -> Self::Driver;
}