pub struct ChunkQueue {
chunks: [WriteChunk; 16],
head: usize,
tail: usize,
count: usize,
next_sequence: u32,
}Expand description
Chunk queue for buffering writes.
Used to decouple HTTP receive rate from disk write rate.
Fields§
§chunks: [WriteChunk; 16]Queued chunks.
head: usizeHead index (next to dequeue).
tail: usizeTail index (next slot to enqueue).
count: usizeNumber of queued chunks.
next_sequence: u32Next sequence number.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChunkQueue
impl RefUnwindSafe for ChunkQueue
impl !Send for ChunkQueue
impl !Sync for ChunkQueue
impl Unpin for ChunkQueue
impl UnwindSafe for ChunkQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more