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

Method peek

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

Peek at the oldest dead letter without removing it.

(&self)

Source from the content-addressed store, hash-verified

162
163 /// Peek at the oldest dead letter without removing it.
164 pub fn peek(&self) -> Option<&DeadLetter> {
165 self.entries.front()
166 }
167
168 /// Dequeue the oldest dead letter for retry or inspection.
169 pub fn dequeue(&mut self) -> Option<DeadLetter> {

Calls 1

frontMethod · 0.80