pub struct Level {
pub own: Vec<ActionDescriptor>,
pub children: Vec<Node>,
pub revision: String,
pub pages: Arc<LevelPages>,
}Expand description
The resources and actions one directory listing holds under parent.
Fields§
§own: Vec<ActionDescriptor>Actions of the parent itself.
children: Vec<Node>§revision: StringThe directory revision it was read at.
pages: Arc<LevelPages>The pages it was read from (LevelPages).
Implementations§
Source§impl Level
impl Level
Sourcepub fn whole_children(&self) -> &[Node]
pub fn whole_children(&self) -> &[Node]
The resources of the level every row of which was read. A read that stopped at its bound may have stopped inside its last resource, whose other rows (the actions it offers, the one that reads it among them) are on the page after: that one is no resource to name or act on until the level is read on.
Sourcepub fn row_mark(
&self,
parent: &str,
child: usize,
) -> Option<(Vec<u8>, String, usize)>
pub fn row_mark( &self, parent: &str, child: usize, ) -> Option<(Vec<u8>, String, usize)>
The provider’s cursor for the row the resource at child among the
level’s rows starts at, the revision it was read at, and how many
resources that cursor’s page holds before it: where a listing’s next
page asks for its first resource, so that page reads from there and not
from the level’s first one. A provider that names its rows by offset is
asked at the row itself, so nothing of its page comes before it; one
whose cursors are its own names the page the row is in, and the
resources before it that page holds. A resource past the rows read
starts at the page the level goes on from; None only when the rows
read cover the directory whole, so there is nowhere to go on from.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Level
impl Freeze for Level
impl Move for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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