pub enum TraversalPosition {
Start,
Name(String),
Index(u64),
End,
}
Expand description
Seek position inside a directory. The precise meaning of the Name and Index values are entirely up to an implementation; it could indicate the next entry to be returned or the last entry returned; the type should be considered to be opaque to the client. There are some implementations that return entries in alphabetical order, but they are not required to do so. The Start value indicates the first entry should be returned and the End value indicates no more entries should be returned.
Variants§
Start
The first entry in the directory.
Name(String)
A name of an entry.
Index(u64)
The index of an entry.
End
The whole listing was traversed. There is nothing else to return.
Trait Implementations§
Source§impl Clone for TraversalPosition
impl Clone for TraversalPosition
Source§fn clone(&self) -> TraversalPosition
fn clone(&self) -> TraversalPosition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TraversalPosition
impl Debug for TraversalPosition
Source§impl Default for TraversalPosition
The default value specifies a traversal that is positioned on the very first entry.
impl Default for TraversalPosition
The default value specifies a traversal that is positioned on the very first entry.
Source§impl Ord for TraversalPosition
impl Ord for TraversalPosition
Source§fn cmp(&self, other: &TraversalPosition) -> Ordering
fn cmp(&self, other: &TraversalPosition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TraversalPosition
impl PartialEq for TraversalPosition
Source§impl PartialOrd for TraversalPosition
impl PartialOrd for TraversalPosition
impl Eq for TraversalPosition
impl StructuralPartialEq for TraversalPosition
Auto Trait Implementations§
impl Freeze for TraversalPosition
impl RefUnwindSafe for TraversalPosition
impl Send for TraversalPosition
impl Sync for TraversalPosition
impl Unpin for TraversalPosition
impl UnwindSafe for TraversalPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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>
Converts
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>
Converts
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