#[non_exhaustive]pub struct UrsaOptions {
pub index_storage_limit: ByteSize,
pub notices: NoticeLevel,
}Expand description
Ursa’s settings (SET ursa.<name> = …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index_storage_limit: ByteSizeThe most bytes of graph indexes a .ursa database keeps on disk.
Past it, the least recently used are removed to make room for a
new one. Default 4GiB. SET in a writable database, it is stored
in the database.
notices: NoticeLevelWhich notices to print on stderr: ‘on’ (slow index builds, and indexes not stored or evicted), ‘all’ (every index build, load and store) or ‘off’. Default on.
Trait Implementations§
Source§impl Clone for UrsaOptions
impl Clone for UrsaOptions
Source§impl ConfigExtension for UrsaOptions
impl ConfigExtension for UrsaOptions
Source§impl ConfigField for UrsaOptions
impl ConfigField for UrsaOptions
Source§impl Debug for UrsaOptions
impl Debug for UrsaOptions
Source§impl Default for UrsaOptions
impl Default for UrsaOptions
Source§impl ExtensionOptions for UrsaOptions
impl ExtensionOptions for UrsaOptions
Source§fn cloned(&self) -> Box<dyn ExtensionOptions>
fn cloned(&self) -> Box<dyn ExtensionOptions>
Return a deep clone of this
ExtensionOptions Read moreSource§fn entries(&self) -> Vec<ConfigEntry>
fn entries(&self) -> Vec<ConfigEntry>
Returns the
ConfigEntry stored in this ExtensionOptionsAuto Trait Implementations§
impl Forget for UrsaOptions
impl Freeze for UrsaOptions
impl RefUnwindSafe for UrsaOptions
impl Send for UrsaOptions
impl Sync for UrsaOptions
impl Unpin for UrsaOptions
impl UnsafeUnpin for UrsaOptions
impl UnwindSafe for UrsaOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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