MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / pending

Method pending

crates/virtual-machine/src/devices/keyboard.rs:60–62  ·  view source on GitHub ↗

Number of events waiting to be read.

(&self)

Source from the content-addressed store, hash-verified

58 /// Number of events waiting to be read.
59 pub fn pending(&self) -> usize {
60 self.queue.len()
61 }
62
63 // Pop the oldest event, or the empty sentinel.
64 fn pop(&mut self) -> u32 {
65 self.queue.pop_front().unwrap_or(KBD_EMPTY)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected