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

Method segment_len

crates/commitlog/src/stream/common.rs:53–58  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

51
52pub trait AsyncLen: AsyncSeek + Unpin + Send {
53 fn segment_len(&mut self) -> impl Future<Output = io::Result<u64>> + Send
54 where
55 Self: Sized,
56 {
57 async { spacetimedb_fs_utils::compression::segment_len(self).await }
58 }
59}
60
61impl<T: AsyncWrite + AsyncLen + Send> AsyncLen for tokio::io::BufWriter<T> {

Callers

nothing calls this directly

Implementers 3

fs.rscrates/commitlog/src/repo/fs.rs
segment.rscrates/commitlog/src/repo/mem/segment.
common.rscrates/commitlog/src/stream/common.rs

Calls 1

segment_lenFunction · 0.85

Tested by

no test coverage detected