pub struct Segment { /* private fields */ }Expand description
A single WAL segment file with concurrent read/write support.
Writes go through the mutex-protected File handle.
Reads use a dup’d file descriptor (read_fd) that is independent
of the write cursor, enabling lock-free pread/preadv calls.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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