SegmentLen

Trait SegmentLen 

Source
pub trait SegmentLen: Seek {
    // Provided method
    fn segment_len(&mut self) -> Result<u64> { ... }
}

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl SegmentLen for CompressReader

Source§

impl SegmentLen for File

Source§

impl<T: SegmentLen> SegmentLen for BufReader<T>

Source§

fn segment_len(&mut self) -> Result<u64>

Implementors§