pub trait SegmentLen: Seek {
// Provided method
fn segment_len(&mut self) -> Result<u64> { ... }
}Provided Methods§
Sourcefn segment_len(&mut self) -> Result<u64>
fn segment_len(&mut self) -> Result<u64>
Determine the length in bytes of the segment.
This method does not rely on metadata fsync, and may use up to three
seek operations.
If the method returns successfully, the seek position before the call is restored. However, if it returns an error, the seek position is unspecified.