MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / current_segment_header

Method current_segment_header

crates/commitlog/src/commitlog.rs:850–852  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

848
849impl<R: Repo> Commits<R> {
850 fn current_segment_header(&self) -> Option<&segment::Header> {
851 self.inner.as_ref().map(|segment| &segment.header)
852 }
853
854 /// Turn `self` into an iterator which pairs the log format version of the
855 /// current segment with the [`Commit`].

Callers 1

nextMethod · 0.80

Calls 2

mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected