pub struct DbOptions { /* private fields */ }Expand description
Configuration options for the domain database
These options control where and how the database stores data on disk. They are primarily used with the RocksDB storage backend.
Implementations§
Source§impl DbOptions
impl DbOptions
Sourcepub fn with_db_prefix_path(self, prefix_path: PathBuf) -> Self
pub fn with_db_prefix_path(self, prefix_path: PathBuf) -> Self
Sourcepub fn append_to_prefix_path(&mut self, path: &str)
pub fn append_to_prefix_path(&mut self, path: &str)
Append a path component to the database’s existing prefix path
This is useful for creating subdirectories for different shards or domain instances.
§Parameters
path- Path component to append
Trait Implementations§
Source§impl From<DbOptions> for DbUserOptions
Convert our options to the storage crate’s options format
impl From<DbOptions> for DbUserOptions
Convert our options to the storage crate’s options format
impl Eq for DbOptions
impl StructuralPartialEq for DbOptions
Auto Trait Implementations§
impl Freeze for DbOptions
impl RefUnwindSafe for DbOptions
impl Send for DbOptions
impl Sync for DbOptions
impl Unpin for DbOptions
impl UnwindSafe for DbOptions
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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request