pub struct LsCursor {
pub offset: usize,
pub resume: Option<(PageMark, usize)>,
pub after: Option<String>,
}Expand description
A cursor a listing issues: how many entries the listing is past, and,
for a resource’s listing, the directory page the next one starts in and
how many resources that page holds before it, so the next page reads
from there instead of every page before it. Written
<offset> or <offset>.<skip>.<revision hex>.<cursor hex>[.<after hex>],
the cursor hex being ~ when the page is the directory’s start.
Fields§
§offset: usizeEntries the listing is past.
resume: Option<(PageMark, usize)>The directory page the next entry starts in, and how many resources that page holds before it.
after: Option<String>The resource the page before ended at, where the next page resumes in a directory: read on from the same row once the directory moved on, a page that finds it again starts after it, so what writes put before it never lists a resource twice.
Implementations§
Trait Implementations§
impl Eq for LsCursor
impl StructuralPartialEq for LsCursor
Auto Trait Implementations§
impl Forget for LsCursor
impl Freeze for LsCursor
impl Move for LsCursor
impl RefUnwindSafe for LsCursor
impl Send for LsCursor
impl Sync for LsCursor
impl Unpin for LsCursor
impl UnsafeUnpin for LsCursor
impl UnwindSafe for LsCursor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more