pub struct SegmentInfo {
pub first_lsn: u64,
pub last_lsn: u64,
pub path: PathBuf,
pub bytes: u64,
}Expand description
One sealed or active log segment’s in-memory descriptor.
Fields§
§first_lsn: u64First LSN stored in the segment.
last_lsn: u64Last LSN stored in the segment (first_lsn - 1 when empty).
path: PathBufSegment file path.
bytes: u64Valid bytes in the segment (after any torn tail is truncated).
Trait Implementations§
Source§impl Clone for SegmentInfo
impl Clone for SegmentInfo
Auto Trait Implementations§
impl Freeze for SegmentInfo
impl RefUnwindSafe for SegmentInfo
impl Send for SegmentInfo
impl Sync for SegmentInfo
impl Unpin for SegmentInfo
impl UnsafeUnpin for SegmentInfo
impl UnwindSafe for SegmentInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more