pub struct ReadDirOptions { /* private fields */ }Expand description
Resource limits for one allocating directory listing.
Implementations§
Source§impl ReadDirOptions
impl ReadDirOptions
pub const fn new() -> Self
pub const fn max_entries(self, entries: usize) -> Self
pub const fn max_path_bytes(self, bytes: usize) -> Self
pub const fn entry_limit(self) -> usize
pub const fn path_byte_limit(self) -> usize
Trait Implementations§
Source§impl Clone for ReadDirOptions
impl Clone for ReadDirOptions
Source§fn clone(&self) -> ReadDirOptions
fn clone(&self) -> ReadDirOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadDirOptions
Source§impl Debug for ReadDirOptions
impl Debug for ReadDirOptions
Source§impl Default for ReadDirOptions
impl Default for ReadDirOptions
impl Eq for ReadDirOptions
Source§impl PartialEq for ReadDirOptions
impl PartialEq for ReadDirOptions
impl StructuralPartialEq for ReadDirOptions
Auto Trait Implementations§
impl Freeze for ReadDirOptions
impl RefUnwindSafe for ReadDirOptions
impl Send for ReadDirOptions
impl Sync for ReadDirOptions
impl Unpin for ReadDirOptions
impl UnsafeUnpin for ReadDirOptions
impl UnwindSafe for ReadDirOptions
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