Home
last modified time | relevance | path

Searched refs:metadata_ring (Results 1 – 1 of 1) sorted by relevance

/smoltcp-0.9.1/src/storage/
Dpacket_buffer.rs44 metadata_ring: RingBuffer<'a, PacketMetadata<H>>, field
59 metadata_ring: RingBuffer::new(metadata_storage), in new()
66 self.metadata_ring.is_empty() in is_empty()
71 self.metadata_ring.is_full() in is_full()
81 if self.payload_ring.capacity() < size || self.metadata_ring.is_full() { in enqueue()
106 *self.metadata_ring.enqueue_one()? = PacketMetadata::padding(contig_window); in enqueue()
113 *self.metadata_ring.enqueue_one()? = PacketMetadata::packet(size, header); in enqueue()
131 if self.payload_ring.capacity() < max_size || self.metadata_ring.is_full() { in enqueue_with_infallible()
150 *self.metadata_ring.enqueue_one()? = PacketMetadata::padding(contig_window); in enqueue_with_infallible()
161 *self.metadata_ring.enqueue_one()? = PacketMetadata::packet(size, header); in enqueue_with_infallible()
[all …]