pub struct TraceOptions {
pub direction: TraceDirection,
pub max_depth: u32,
pub max_nodes: u32,
pub max_links: u32,
pub max_work: u64,
pub range_member_budget: u32,
pub include_values: bool,
}Expand description
Capacity minima that must hold the request’s own anchors are hard errors: trace requires max_nodes >= unique roots (and nonempty roots); range_page requires limit >= 1. All expansion budgets (max_depth, max_links, max_work, range_member_budget, max_results) accept zero and degrade to in-band truncation.
Fields§
§direction: TraceDirection§max_depth: u32Maximum expansion depth. Depth N can still materialize elided target
nodes at depth N + 1, charged against max_nodes.
max_nodes: u32Global node capacity. It must be at least the number of unique roots; all roots are admitted before expansion and duplicates share a node.
max_links: u32§max_work: u64§range_member_budget: u32§include_values: boolImplementations§
Source§impl TraceOptions
impl TraceOptions
pub fn with_direction(self, direction: TraceDirection) -> Self
pub fn with_max_depth(self, max_depth: u32) -> Self
pub fn with_max_nodes(self, max_nodes: u32) -> Self
pub fn with_max_links(self, max_links: u32) -> Self
pub fn with_max_work(self, max_work: u64) -> Self
pub fn with_range_member_budget(self, range_member_budget: u32) -> Self
pub fn with_include_values(self, include_values: bool) -> Self
Trait Implementations§
Source§impl Clone for TraceOptions
impl Clone for TraceOptions
Source§fn clone(&self) -> TraceOptions
fn clone(&self) -> TraceOptions
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 TraceOptions
Source§impl Debug for TraceOptions
impl Debug for TraceOptions
Source§impl Default for TraceOptions
impl Default for TraceOptions
impl Eq for TraceOptions
Source§impl PartialEq for TraceOptions
impl PartialEq for TraceOptions
impl StructuralPartialEq for TraceOptions
Auto Trait Implementations§
impl Freeze for TraceOptions
impl RefUnwindSafe for TraceOptions
impl Send for TraceOptions
impl Sync for TraceOptions
impl Unpin for TraceOptions
impl UnsafeUnpin for TraceOptions
impl UnwindSafe for TraceOptions
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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