pub struct RedDBEngine { /* private fields */ }Implementations§
Source§impl RedDBEngine
impl RedDBEngine
pub fn open<P: AsRef<Path>>(path: P) -> RedDBResult<Self>
pub fn with_options(options: RedDBOptions) -> RedDBResult<Self>
pub fn options(&self) -> &RedDBOptions
pub fn layout(&self) -> &PhysicalLayout
pub fn mode(&self) -> StorageMode
pub fn path(&self) -> Option<&Path>
pub fn begin_transaction(&self) -> RedDBResult<Transaction>
pub fn sync(&self) -> RedDBResult<()>
pub fn checkpoint(&self) -> RedDBResult<Option<CheckpointResult>>
pub fn checkpoint_if_needed(&self) -> RedDBResult<Option<CheckpointResult>>
pub fn stats(&self) -> EngineStats
pub fn indices(&self) -> &IndexCatalog
pub fn close(self) -> RedDBResult<()>
pub fn info(&self) -> EngineInfo
Trait Implementations§
Source§impl CatalogService for RedDBEngine
impl CatalogService for RedDBEngine
fn list_collections(&self) -> Vec<String>
fn collection_stats(&self, _: &str) -> Option<CollectionStats>
fn catalog_snapshot(&self) -> CatalogSnapshot
Source§impl DataOps for RedDBEngine
impl DataOps for RedDBEngine
fn execute_query(&self, _query: &str) -> RedDBResult<()>
Source§impl HealthProvider for RedDBEngine
impl HealthProvider for RedDBEngine
fn health(&self) -> HealthReport
Source§impl QueryPlanner for RedDBEngine
impl QueryPlanner for RedDBEngine
Auto Trait Implementations§
impl !Freeze for RedDBEngine
impl !RefUnwindSafe for RedDBEngine
impl Send for RedDBEngine
impl Sync for RedDBEngine
impl Unpin for RedDBEngine
impl UnsafeUnpin for RedDBEngine
impl !UnwindSafe for RedDBEngine
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> 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 moreSource§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