MCPcopy Create free account
hub / github.com/aws/clock-bound / head

Method head

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

Get the latest value added to the ring buffer

(&self)

Source from the content-addressed store, hash-verified

80
81 /// Get the latest value added to the ring buffer
82 pub fn head(&self) -> Option<&T> {
83 self.buffer.back()
84 }
85
86 /// Get the oldest value in the ring buffer
87 pub fn tail(&self) -> Option<&T> {

Callers 8

min_rtt_in_quarterMethod · 0.80
calculate_thetaMethod · 0.80
calculate_thetaMethod · 0.80
push_if_newerMethod · 0.80
expunge_old_eventsMethod · 0.80
feedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected