pub enum TraversalPosition {
Start,
Name(String),
Bytes(Box<[u8]>),
Index(u64),
End,
}Expand description
Seek position inside a directory. The precise meaning of the Name, Bytes 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. The VFS library will only ever return either Start or a value
previously constructed by the implementation, so implementations can assume that other variants
will not be presented to the implementation. As the VFS library evolves, more variants may be
added and so match statements in implementations should have a catch all.
Variants§
Start
The first entry in the directory.
Name(String)
A name of an entry.
Bytes(Box<[u8]>)
Bytes, in any form the implementation desires.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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,
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
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>
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