pub struct RealFs { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Fs for RealFs
impl Fs for RealFs
fn append(&mut self, file: FileId, data: &[u8]) -> Result<()>
fn sync(&mut self, file: FileId) -> Result<()>
fn read(&self, file: FileId) -> Result<Vec<u8>>
fn write_atomic(&mut self, file: FileId, data: &[u8]) -> Result<()>
Source§fn snapshot_path(&self) -> Option<PathBuf>
fn snapshot_path(&self) -> Option<PathBuf>
Return the on-disk path of the snapshot file, if any. Read more
Source§fn wal_path(&self) -> Option<PathBuf>
fn wal_path(&self) -> Option<PathBuf>
Return the on-disk path of the WAL file, if any. Read more
Source§fn try_lock_exclusive(&self) -> Result<bool>
fn try_lock_exclusive(&self) -> Result<bool>
Try to take the store’s advisory exclusive write lock without blocking. Read more
Source§fn unlock(&self) -> Result<()>
fn unlock(&self) -> Result<()>
Release the advisory write lock. No-op when it is not held. Read more
Source§fn snapshot_ident(&self) -> Result<Option<(u64, u64)>>
fn snapshot_ident(&self) -> Result<Option<(u64, u64)>>
Identity of the current snapshot file as
(len, mtime_nanos), or None
when no snapshot exists. Read moreSource§fn list_archives(&self) -> Result<Vec<u64>>
fn list_archives(&self) -> Result<Vec<u64>>
List all WAL archive identifiers, sorted ascending (oldest first). Read more
Source§fn read_archive(&self, n: u64) -> Result<Vec<u8>>
fn read_archive(&self, n: u64) -> Result<Vec<u8>>
Read the byte contents of WAL archive
n. Read moreSource§fn archive_wal(&mut self, n: u64) -> Result<()>
fn archive_wal(&mut self, n: u64) -> Result<()>
Atomically rename the current WAL to
wal.<n>.archive (same directory,
same filesystem — the rename is guaranteed atomic at the OS level). Read moreSource§fn delete_archive(&mut self, n: u64) -> Result<()>
fn delete_archive(&mut self, n: u64) -> Result<()>
Delete archive
n. No-op if it does not exist. Read moreSource§fn read_horizon_floor(&self) -> Result<u64>
fn read_horizon_floor(&self) -> Result<u64>
Return the persisted horizon floor — the global frame index of the
first commit that is still reachable through surviving archives. Read more
Source§fn write_horizon_floor(&mut self, floor: u64) -> Result<()>
fn write_horizon_floor(&mut self, floor: u64) -> Result<()>
Atomically persist
floor so that a subsequent [read_horizon_floor]
after reopen returns the same value. Read moreSource§fn has_genesis_marker(&self) -> bool
fn has_genesis_marker(&self) -> bool
Auto Trait Implementations§
impl !Freeze for RealFs
impl RefUnwindSafe for RealFs
impl Send for RealFs
impl Sync for RealFs
impl Unpin for RealFs
impl UnsafeUnpin for RealFs
impl UnwindSafe for RealFs
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.