pub struct Listing {
pub visited: usize,
pub complete: bool,
}Expand description
What Fs::list_dir did.
visited cannot be read without seeing complete, and that is the whole point of it being a
struct: a partial listing that reads as a full one is the failure this type exists to prevent.
Fields§
§visited: usizeHow many entries the closure was shown.
complete: booltrue if the directory ended. false means the walk stopped first - the closure returned
false, or DIR_PAGE_MAX was reached - and there are MORE ENTRIES THAN YOU SAW. Say so
in whatever you report; do not present the count as the size of the directory.
Trait Implementations§
impl Copy for Listing
impl Eq for Listing
impl StructuralPartialEq for Listing
Auto Trait Implementations§
impl Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnsafeUnpin for Listing
impl UnwindSafe for Listing
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