Skip to main content

Refusal

Enum Refusal 

Source
pub enum Refusal {
Show 17 variants Sort, Fold, Unique, Take, Pattern, Resolution, Walk, State, Join, Reducer, Type, Union, Operator, Name, Condition, Nothing, Nodes,
}
Expand description

Why the exporter leaves a part of a Quarb query to the engine: the first word of the diagnostic code a planner’s refusal is told under (Sort is SORT_NOT_PUSHED; ruling 2026-11-17, one word per reason where NOT_PUSHED was the one kind). The word names what the user wrote; the inventory (langspec/diagnostics.tsv) files each under its remedy.

Variants§

§

Sort

A sort (sort_by, top, reverse): a database orders text by its own collation.

§

Fold

A fold, a command over its groups, a HAVING.

§

Unique

unique: DISTINCT returns rows in no stated order.

§

Take

A selection by position.

§

Pattern

A regular expression, a substring test, a LIKE.

§

Resolution

A condition that follows a reference or navigates.

§

Walk

Navigation beyond a table’s rows.

§

State

A read of the query’s own state: a register, the topic, a capture, a mark, a pushed value.

§

Join

A correlation in a form with no JOIN.

§

Reducer

A reducer over row nodes, or one SQL has no aggregate for.

§

Type

A comparison that would follow the column’s declared type where the engine follows each value.

§

Union

A union of branches.

§

Operator

An operator, a command or a projection with no SQL form.

§

Name

A name or a literal with no spelling every dialect reads, or an empty query.

§

Condition

A leading condition a partial plan could not send ahead: what follows would see the difference.

§

Nothing

A partial plan with no leading condition to send ahead: nothing was refused, there was nothing to push, and no diagnostic tells of it.

§

Nodes

A whole plan for a query that ends on row nodes: their locators are the scan’s to write. Nothing the reader wrote is refused (the conditions go ahead through the partial plan), and no diagnostic tells of it.

Implementations§

Source§

impl Refusal

Source

pub fn code(self) -> Option<&'static str>

The diagnostic code; None for Refusal::Nothing and Refusal::Nodes.

Trait Implementations§

Source§

impl Clone for Refusal

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 Refusal

Source§

impl Debug for Refusal

Source§

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

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

impl Eq for Refusal

Source§

impl Hash for Refusal

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Refusal

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 Refusal

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> ErasedDestructor for T
where T: 'static,

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.