pub struct WantOptions {
pub policy: WantPolicy,
pub max_want_lines: usize,
}Expand description
Additional request policy, separate from existing selection storage literals. Occurrences include duplicates. Existing wrappers preserve their strict rule without adding a new occurrence limit. Hosts must still bound request bytes.
This is not a total logical-work limit: metadata scans remain bounded by object/ref capacities, and structural reads by the existing shared graph cap.
Fields§
§policy: WantPolicy§max_want_lines: usizeImplementations§
Source§impl WantOptions
impl WantOptions
pub const STRICT: WantOptions
pub const fn all_visible_reachable(max_want_lines: usize) -> WantOptions
Trait Implementations§
Source§impl Clone for WantOptions
impl Clone for WantOptions
Source§fn clone(&self) -> WantOptions
fn clone(&self) -> WantOptions
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 WantOptions
Source§impl Debug for WantOptions
impl Debug for WantOptions
Source§impl Default for WantOptions
impl Default for WantOptions
Source§fn default() -> WantOptions
fn default() -> WantOptions
Returns the “default value” for a type. Read more
impl Eq for WantOptions
Source§impl PartialEq for WantOptions
impl PartialEq for WantOptions
impl StructuralPartialEq for WantOptions
Auto Trait Implementations§
impl Freeze for WantOptions
impl RefUnwindSafe for WantOptions
impl Send for WantOptions
impl Sync for WantOptions
impl Unpin for WantOptions
impl UnsafeUnpin for WantOptions
impl UnwindSafe for WantOptions
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