Struct naia_shared::SequenceBuffer
source · [−]pub struct SequenceBuffer<T> { /* private fields */ }Expand description
Collection to store data of any kind.
Implementations
Creates a SequenceBuffer with a desired capacity.
Returns the most recently stored sequence number.
Returns a mutable reference to the entry with the given sequence number.
Returns a reference to the entry with the given sequence number.
Inserts the entry data into the sequence buffer. If the requested sequence number is “too old”, the entry will not be inserted and will return false
Returns whether or not we have previously inserted an entry for the given sequence number.
Removes an entry from the sequence buffer
Remove entries up until a specific sequence number
Get a count of entries in the buffer
Get an iterator into the sequence