pub struct WalSegmentId(pub usize);Expand description
Identity of one salt epoch within a -wal file: its 0-based segment ordinal.
A fresh segment begins at file start and after every checkpoint salt reset.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for WalSegmentId
impl Clone for WalSegmentId
Source§fn clone(&self) -> WalSegmentId
fn clone(&self) -> WalSegmentId
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 moreimpl Copy for WalSegmentId
Source§impl Debug for WalSegmentId
impl Debug for WalSegmentId
impl Eq for WalSegmentId
Source§impl Hash for WalSegmentId
impl Hash for WalSegmentId
Source§impl Ord for WalSegmentId
impl Ord for WalSegmentId
Source§fn cmp(&self, other: &WalSegmentId) -> Ordering
fn cmp(&self, other: &WalSegmentId) -> Ordering
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 WalSegmentId
impl PartialEq for WalSegmentId
Source§impl PartialOrd for WalSegmentId
impl PartialOrd for WalSegmentId
impl StructuralPartialEq for WalSegmentId
Auto Trait Implementations§
impl Freeze for WalSegmentId
impl RefUnwindSafe for WalSegmentId
impl Send for WalSegmentId
impl Sync for WalSegmentId
impl Unpin for WalSegmentId
impl UnsafeUnpin for WalSegmentId
impl UnwindSafe for WalSegmentId
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