pub enum TraversalPosition {
Start,
Name(String),
Bytes(Vec<u8>),
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.
Bytes(Vec<u8>)
Bytes for 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
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§fn eq(&self, other: &TraversalPosition) -> bool
fn eq(&self, other: &TraversalPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TraversalPosition
impl PartialOrd for TraversalPosition
source§fn partial_cmp(&self, other: &TraversalPosition) -> Option<Ordering>
fn partial_cmp(&self, other: &TraversalPosition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)