Expand description
§ndn-faces — NDN face implementations
All face transports for ndn-rs in a single crate, organised as submodules:
| Module | Types | Feature |
|---|---|---|
net | UdpFace, TcpFace, MulticastUdpFace, WebSocketFace | net / websocket |
local | InProcFace, InProcHandle, ShmFace, UnixFace, IpcFace | local / spsc-shm |
serial | SerialFace, CobsCodec | serial |
l2 | NamedEtherFace, MulticastEtherFace, [BleFace], WfbFace | l2 / bluetooth / wfb |
§Quick re-exports
The most common types are re-exported at the crate root:
ⓘ
use ndn_faces::{UdpFace, TcpFace, InProcFace, InProcHandle};Re-exports§
pub use net::LpReliability;pub use net::MulticastUdpFace;pub use net::ReliabilityConfig;pub use net::RtoStrategy;pub use net::TcpFace;pub use net::UdpFace;pub use net::tcp_face_connect;pub use net::tcp_face_from_stream;pub use net::WebSocketFace;pub use local::InProcFace;pub use local::InProcHandle;pub use local::IpcFace;pub use local::IpcListener;pub use local::ipc_face_connect;pub use local::UnixFace;pub use local::unix_face_connect;pub use local::unix_face_from_stream;pub use local::unix_management_face_from_stream;pub use local::ShmError;pub use local::ShmFace;pub use local::ShmHandle;pub use serial::SerialFace;pub use serial::cobs::CobsCodec;pub use serial::serial_face_open;pub use l2::NDN_ETHERTYPE;pub use l2::RadioFaceMetadata;pub use l2::RadioTable;pub use l2::MulticastEtherFace;pub use l2::NamedEtherFace;pub use l2::NeighborDiscovery;pub use l2::WfbFace;pub use l2::get_interface_mac;
Modules§
- iface
- Network interface enumeration and whitelist/blacklist filtering.
- iface_
watcher - Dynamic interface add/remove watcher (Linux netlink; stubs on other platforms). Dynamic network interface add/remove watcher.
- l2
ndn_faces::l2— Layer-2 (Ethernet and radio) faces- local
ndn_faces::local— Local and IPC faces- net
ndn_faces::net— Network transport faces- serial
ndn_faces::serial— Serial port faces
Structs§
- MacAddr
- A 6-byte IEEE 802 MAC address.
Constants§
- DEFAULT_
UDP_ MTU - Default MTU for UDP faces (conservative for Ethernet + IP + UDP headers).