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
Trait Implementations
Auto Trait Implementations
impl<N, const SIZE: usize> RefUnwindSafe for Pages<N, SIZE>
impl<N, const SIZE: usize> Send for Pages<N, SIZE> where
N: Send,
impl<N, const SIZE: usize> Sync for Pages<N, SIZE> where
N: Sync,
impl<N, const SIZE: usize> Unpin for Pages<N, SIZE>
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