#[non_exhaustive]pub struct ListLimits {
pub max_entries: usize,
}Expand description
Bounds for enumerating loose objects and collecting identities.
max_entries counts every directory entry a loose scan reads, including fan-out
directories and non-object files, and every identity Objects::object_ids collects. The
default suits repositories with tens of millions of objects; lower it for untrusted input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_entries: usizeMaximum directory entries read plus identities collected by one operation.
Implementations§
Source§impl ListLimits
impl ListLimits
Sourcepub fn with_max_entries(self, max_entries: usize) -> Self
pub fn with_max_entries(self, max_entries: usize) -> Self
Sets Self::max_entries.
Trait Implementations§
Source§impl Clone for ListLimits
impl Clone for ListLimits
impl Copy for ListLimits
Source§impl Debug for ListLimits
impl Debug for ListLimits
Source§impl Default for ListLimits
impl Default for ListLimits
impl Eq for ListLimits
Source§impl PartialEq for ListLimits
impl PartialEq for ListLimits
impl StructuralPartialEq for ListLimits
Auto Trait Implementations§
impl Freeze for ListLimits
impl RefUnwindSafe for ListLimits
impl Send for ListLimits
impl Sync for ListLimits
impl Unpin for ListLimits
impl UnsafeUnpin for ListLimits
impl UnwindSafe for ListLimits
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