pub struct SegmentMeta {
pub path: PathBuf,
pub first_lsn: u64,
pub file_size: u64,
}Expand description
Metadata about a WAL segment file on disk.
Fields§
§path: PathBufPath to the segment file on disk.
first_lsn: u64First LSN stored in this segment (from the filename).
file_size: u64File size in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentMeta
impl Clone for SegmentMeta
Source§fn clone(&self) -> SegmentMeta
fn clone(&self) -> SegmentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentMeta
impl Debug for SegmentMeta
Source§impl Ord for SegmentMeta
impl Ord for SegmentMeta
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SegmentMeta
impl PartialEq for SegmentMeta
Source§fn eq(&self, other: &SegmentMeta) -> bool
fn eq(&self, other: &SegmentMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SegmentMeta
impl PartialOrd for SegmentMeta
impl Eq for SegmentMeta
impl StructuralPartialEq for SegmentMeta
Auto Trait Implementations§
impl Freeze for SegmentMeta
impl RefUnwindSafe for SegmentMeta
impl Send for SegmentMeta
impl Sync for SegmentMeta
impl Unpin for SegmentMeta
impl UnsafeUnpin for SegmentMeta
impl UnwindSafe for SegmentMeta
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