MCPcopy Index your code
hub / github.com/aws/clock-bound / clear

Method clear

clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:77–79  ·  view source on GitHub ↗

Clears the buffer

(&mut self)

Source from the content-addressed store, hash-verified

75
76 /// Clears the buffer
77 pub fn clear(&mut self) {
78 self.buffer.clear();
79 }
80
81 /// Get the latest value added to the ring buffer
82 pub fn head(&self) -> Option<&T> {

Callers 5

clearFunction · 0.45
handle_disruptionMethod · 0.45
handle_disruptionMethod · 0.45

Calls

no outgoing calls

Tested by 1

clearFunction · 0.36