[][src]Crate network_collections

network-collections

Collections suitable for use with networking, particularly when a fixed memory usage is required to prevent out-of-memory crashes. Includes two kinds of least recently used caches, a bounded hash map, a magic ring buffer (virtual ring buffer) and an arena allocator.

Modules

arena_allocation

An efficient arena allocator.

least_recently_used_cache

Least Recently Used caches.

Structs

Array40

An array new type wrapper with $type elements.

Array52

An array new type wrapper with $type elements.

ArrayVec

A vector with a fixed capacity.

BoundedHashMap

A bounded hash map, very similar to a regular Rust HashMap but can not become larger than its maximum capacity (plus one); ideal for indexes of network connections, etc in resource constraint aware environments.

Traits

NonNullUnifiedArrayVecAndVec

A trait to unify ArrayVec and Vec when dealing with NonNull pointers.

UnifiedArrayVecAndVec

A trait to unify ArrayVec and Vec.