pub struct Page { /* private fields */ }Implementations§
Source§impl Page
impl Page
Sourcepub const MAX_SIZE: u64 = 100
pub const MAX_SIZE: u64 = 100
Larger pages are refused, so a request cannot read a whole table.
Sourcepub const MAX_OFFSET: u64 = 10_000
pub const MAX_OFFSET: u64 = 10_000
A database reads and drops every row before the offset.
pub fn new(number: u64, size: u64) -> Result<Self>
pub fn number(self) -> u64
pub fn size(self) -> u64
Trait Implementations§
impl Copy for Page
impl Eq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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