pub struct Pages<N, const SIZE: usize> { /* private fields */ }Implementations
sourceimpl<N: PageNo, const SIZE: usize> Pages<N, SIZE>
impl<N: PageNo, const SIZE: usize> Pages<N, SIZE>
pub async fn sync_data(&self) -> Result<()>
pub async fn sync_all(&self) -> Result<()>
pub async fn read(&self, num: N) -> Result<Reader<'_, N, [u8; SIZE]>>
pub async fn goto(&self, num: N) -> Result<Page<'_, N, SIZE>>
pub async fn write(&self, num: N, buf: [u8; SIZE]) -> Result<()>
pub async fn create(&self, buf: [u8; SIZE]) -> Result<N>
pub fn alloc_sync(&self, count: u32) -> Result<N>
pub fn len(&self) -> u32
pub fn inner(&self) -> &File
sourcepub fn metadata(&self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl Read for &'_ [u8]impl Write for &'_ mut [u8]
pub fn metadata(&self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl Read for &'_ [u8]impl Write for &'_ mut [u8]
Get a mutable reference to the pages’s metadata.
pub fn raw_lock_api(&self) -> &RwLock<N>
Trait Implementations
impl<N: Send, const S: usize> Send for Pages<N, S>
impl<N: Sync, const S: usize> Sync for Pages<N, S>
Auto Trait Implementations
impl<N, const SIZE: usize> !RefUnwindSafe for Pages<N, SIZE>
impl<N, const SIZE: usize> Unpin for Pages<N, SIZE> where
N: Unpin,
impl<N, const SIZE: usize> UnwindSafe for Pages<N, SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more