Crate ndn_transport

Crate ndn_transport 

Source
Expand description

§ndn-transport – Face abstraction and transport layer

Provides the async face abstraction over which NDN packets are sent and received, plus supporting types for face management and framing.

§Key types

  • Face trait – async send/recv interface implemented by all transports.
  • FaceId / FaceKind – face identity and classification (UDP, TCP, etc.).
  • FaceTable / ErasedFace – runtime registry of type-erased faces.
  • StreamFace – generic AsyncRead+AsyncWrite face (TCP, Unix, etc.).
  • TlvCodectokio_util::codec framing for TLV streams.
  • RawPacket – thin wrapper pairing raw Bytes with a source FaceId.
  • CongestionController – per-face congestion window management.

§Feature flags

  • serde – derives Serialize/Deserialize on select types.

Re-exports§

pub use any_map::AnyMap;
pub use congestion::CongestionController;
pub use face::Face;
pub use face::FaceAddr;
pub use face::FaceError;
pub use face::FaceId;
pub use face::FaceKind;
pub use face::FacePersistency;
pub use face::FaceScope;
pub use face::LinkType;
pub use face_event::FaceEvent;
pub use face_pair_table::FacePairTable;
pub use face_table::ErasedFace;
pub use face_table::FaceInfo;
pub use face_table::FaceTable;
pub use forwarding::ForwardingAction;
pub use forwarding::NackReason;
pub use mac_addr::MacAddr;
pub use raw_packet::RawPacket;
pub use stream_face::StreamFace;
pub use tlv_codec::TlvCodec;

Modules§

any_map
congestion
Consumer-side congestion control for NDN.
face
face_event
face_pair_table
face_table
forwarding
Forwarding action types returned by strategies.
mac_addr
Link-layer (MAC) address type shared by the transport, discovery, and face layers.
raw_packet
stream_face
tlv_codec