Skip to main content

CapacityKind

Enum CapacityKind 

Source
pub enum CapacityKind {
    Graph,
    Expression,
    WalPayload,
    SeekCandidates,
    AdjacencyTypes,
    SealedArena,
}
Expand description

Which capacity contract a Error::Capacity refusal belongs to (ADR-0042/ADR-0307 vs ADR-0463 vs ADR-0494). Public so a consumer can render the class without parsing the message; the Display already differs.

Variants§

§

Graph

The live graph + index cap (--logical-graph-size-limit, ADR-0042).

§

Expression

One expression-built allocation over the per-value cap (ADR-0463).

§

WalPayload

The per-record WAL payload cap (ADR-0086, ADR-0494): one commit record whose serialized payload crosses Error::WAL_PAYLOAD_CAP_BYTES, refused mid-serialization before any frame is written. used is the counted byte total at which the bounded serializer stopped — a lower bound of the record the statement tried to commit, never its final size.

§

SeekCandidates

A shortest-path endpoint pattern matched more nodes than the route will list to pick its search side (ADR-0556, ADR-0567). used is the match count at which the bounded scan stopped — a lower bound, never the full match count — and limit the cap it consulted.

§

AdjacencyTypes

The sealed adjacency tier’s per-node type cap (ADR-0599): one node holds at most u16::MAX distinct relationship types in one direction — the span-length field’s structural bound, refused at admission before the redo is logged. used is the distinct-type count the node would reach, limit the bound.

§

SealedArena

The sealed adjacency tier’s stream cap (ADR-0599): one direction’s arena holds at most u32::MAX bytes of encoded hop streams — the entry-offset field’s structural bound, refused at admission. used is the arena-plus-live-charge bound at which the batch was refused, limit the bound.

Trait Implementations§

Source§

impl Clone for CapacityKind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CapacityKind

Source§

impl Debug for CapacityKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CapacityKind

Source§

impl PartialEq for CapacityKind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CapacityKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.