pub struct FilePageDevice { /* private fields */ }Expand description
Native exclusive page device. Parent must exist. Existing/stale .writer
ownership is never stolen; externally fence its process before removal.
Close attempts all handles and retains ownership after any uncertain error.
Prefer explicit close to observe cleanup errors; Drop preserves the fence.
Implementations§
Trait Implementations§
Source§impl Drop for FilePageDevice
impl Drop for FilePageDevice
Source§impl PageDevice for FilePageDevice
impl PageDevice for FilePageDevice
fn supports_durable_flush(&self) -> bool
fn new_database_id(&mut self) -> Result<[u8; 16], LinkError>
fn data_length(&mut self) -> Result<u64, LinkError>
fn read_metadata(&mut self, slot: usize) -> Result<Option<Vec<u8>>, LinkError>
fn write_metadata( &mut self, slot: usize, bytes: &[u8; 128], ) -> Result<(), LinkError>
fn sync_metadata(&mut self, slot: usize) -> Result<(), LinkError>
fn read_page(&mut self, index: u64) -> Result<[u8; 4096], LinkError>
fn write_page( &mut self, index: u64, bytes: &[u8; 4096], ) -> Result<(), LinkError>
fn sync_data(&mut self) -> Result<(), LinkError>
fn truncate_data(&mut self, length: u64) -> Result<(), LinkError>
Source§fn metadata_flags(&self) -> u32
fn metadata_flags(&self) -> u32
Immutable physical format; the default preserves single-copy bytes.
fn read_checked_page( &mut self, index: u64, _expected: u64, ) -> Result<[u8; 4096], LinkError>
Source§impl RepairPageDevice for FilePageDevice
impl RepairPageDevice for FilePageDevice
Auto Trait Implementations§
impl Freeze for FilePageDevice
impl RefUnwindSafe for FilePageDevice
impl Send for FilePageDevice
impl Sync for FilePageDevice
impl Unpin for FilePageDevice
impl UnsafeUnpin for FilePageDevice
impl UnwindSafe for FilePageDevice
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