MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / dequeue

Method dequeue

nodedb-crdt/src/dead_letter.rs:169–171  ·  view source on GitHub ↗

Dequeue the oldest dead letter for retry or inspection.

(&mut self)

Source from the content-addressed store, hash-verified

167
168 /// Dequeue the oldest dead letter for retry or inspection.
169 pub fn dequeue(&mut self) -> Option<DeadLetter> {
170 self.entries.pop_front()
171 }
172
173 /// Get a dead letter by ID.
174 pub fn get(&self, id: u64) -> Option<&DeadLetter> {

Calls 1

pop_frontMethod · 0.80