pub enum TruncationReason {
FrontierCap,
EdgeScanCap,
NodeBudget,
ResponseBytes,
}Expand description
Why an expansion or traversal stopped early. Never silent.
Variants§
FrontierCap
EdgeScanCap
NodeBudget
ResponseBytes
The hydrated answer reached response_max_bytes.
Distinct from NodeBudget, and the difference is actionable: a node
budget is a number the caller asked for and can raise, while this one
says the elements were large. Asking for fewer, or for a narrower type
set, is what helps.
Implementations§
Trait Implementations§
Source§impl Clone for TruncationReason
impl Clone for TruncationReason
impl Copy for TruncationReason
Source§impl Debug for TruncationReason
impl Debug for TruncationReason
Source§impl Display for TruncationReason
impl Display for TruncationReason
impl Eq for TruncationReason
Source§impl FromStr for TruncationReason
impl FromStr for TruncationReason
Source§impl PartialEq for TruncationReason
impl PartialEq for TruncationReason
impl StructuralPartialEq for TruncationReason
Auto Trait Implementations§
impl Freeze for TruncationReason
impl RefUnwindSafe for TruncationReason
impl Send for TruncationReason
impl Sync for TruncationReason
impl Unpin for TruncationReason
impl UnsafeUnpin for TruncationReason
impl UnwindSafe for TruncationReason
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.