Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
handle_disruption_sender
Method · 0.45
handle_disruption_receiver
Method · 0.45
clear
Function · 0.45
handle_disruption
Method · 0.45
handle_disruption
Method · 0.45
Calls
no outgoing calls
Tested by
1
clear
Function · 0.36