Skip to main content

Behaviour

Enum Behaviour 

Source
pub enum Behaviour {
    Honoured,
    Knob(&'static str),
    DefaultOnly(&'static str),
}
Expand description

What the engine does with a value handed to a setting.

The three cases are not three degrees of the same thing. The first is a setting rudb reads, the second is one nothing could read because there is nothing for it to change, and the third is one that would need reading and has nowhere yet to be read.

Variants§

§

Honoured

rudb acts on it. The value lives in the engine rather than in this table, which is why this case carries none.

§

Knob(&'static str)

A knob, with the value a database that has set nothing reports for it.

Nothing it can be set to changes what a query returns, so rudb takes it, keeps it and hands it back, and the statement after it runs the way it would have anyway. SET enable_http_metadata_cache = true is this: there is no HTTP metadata cache here, there is nothing a query could notice about whether one is on, and a script that sets it wanted to keep going rather than to be told rudb has never heard the name.

§

DefaultOnly(&'static str)

Something rudb does not do, with the one value it already behaves as.

Setting it to anything else is refused. SET preserve_insertion_order = false is this: it is a real change to what a query returns, rudb cannot make it, and taking the value and not acting on it would turn one clear error into a wrong answer a statement later.

Trait Implementations§

Source§

impl Clone for Behaviour

Source§

fn clone(&self) -> Behaviour

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 Behaviour

Source§

impl Debug for Behaviour

Source§

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

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

impl Eq for Behaviour

Source§

impl PartialEq for Behaviour

Source§

fn eq(&self, other: &Behaviour) -> 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 Behaviour

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<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.