renet/src/storage/mod.rs

22 lines
555 B
Rust
Raw Normal View History

/*! Specialized containers.
The `storage` module provides containers for use in other modules.
The containers support both pre-allocated memory, without the `std`
or `alloc` crates being available, and heap-allocated memory.
*/
2017-06-18 18:11:21 +08:00
2017-09-21 04:19:05 +08:00
mod assembler;
mod packet_buffer;
2021-06-27 15:31:59 +08:00
mod ring_buffer;
2017-06-18 18:11:21 +08:00
2017-09-21 04:19:05 +08:00
pub use self::assembler::Assembler;
pub use self::packet_buffer::{PacketBuffer, PacketMetadata};
2021-06-27 15:31:59 +08:00
pub use self::ring_buffer::RingBuffer;
2017-06-18 18:11:21 +08:00
/// A trait for setting a value to a known state.
///
/// In-place analog of Default.
pub trait Resettable {
fn reset(&mut self);
}