Struct pancake_engine_ssi::db::DB

source ·
pub struct DB {
    _lock_dir: File,
    db_state: RwLock<DbState>,
    lsm_dir: LsmDir,
    lsm_state: Mutex<LsmState>,
    si_cr_dir: ScndIdxCreationsDir,
    si_cr_mutex: Mutex<()>,
    fc_able_commit_vers_tx: Sender<CommitVer>,
    min_held_list_ver_tx: Sender<ListVer>,
    is_terminating_tx: Sender<()>,
}

Fields§

§_lock_dir: File§db_state: RwLock<DbState>§lsm_dir: LsmDir§lsm_state: Mutex<LsmState>§si_cr_dir: ScndIdxCreationsDir§si_cr_mutex: Mutex<()>§fc_able_commit_vers_tx: Sender<CommitVer>§min_held_list_ver_tx: Sender<ListVer>§is_terminating_tx: Sender<()>

Implementations§

source§

impl DB

source

pub(crate) fn _lock_dir(&self) -> &File

source

pub(crate) fn set__lock_dir(&mut self, value: File) -> &mut Self

source

pub(crate) fn db_state(&self) -> &RwLock<DbState>

source

pub(crate) fn set_db_state(&mut self, value: RwLock<DbState>) -> &mut Self

source

pub(crate) fn lsm_dir(&self) -> &LsmDir

source

pub(crate) fn set_lsm_dir(&mut self, value: LsmDir) -> &mut Self

source

pub(crate) fn lsm_state(&self) -> &Mutex<LsmState>

source

pub(crate) fn set_lsm_state(&mut self, value: Mutex<LsmState>) -> &mut Self

source

pub(crate) fn si_cr_dir(&self) -> &ScndIdxCreationsDir

source

pub(crate) fn set_si_cr_dir(&mut self, value: ScndIdxCreationsDir) -> &mut Self

source

pub(crate) fn si_cr_mutex(&self) -> &Mutex<()>

source

pub(crate) fn set_si_cr_mutex(&mut self, value: Mutex<()>) -> &mut Self

source

pub(crate) fn fc_able_commit_vers_tx(&self) -> &Sender<CommitVer>

source

pub(crate) fn set_fc_able_commit_vers_tx( &mut self, value: Sender<CommitVer> ) -> &mut Self

source

pub(crate) fn min_held_list_ver_tx(&self) -> &Sender<ListVer>

source

pub(crate) fn set_min_held_list_ver_tx( &mut self, value: Sender<ListVer> ) -> &mut Self

source

pub(crate) fn is_terminating_tx(&self) -> &Sender<()>

source

pub(crate) fn set_is_terminating_tx(&mut self, value: Sender<()>) -> &mut Self

source§

impl DB

source

pub fn load_or_new<P: AsRef<Path>>( db_dir_path: P ) -> Result<(Arc<Self>, FlushingAndCompactionWorker)>

source

pub fn notify_min_held_list_ver(&self, mhlv: ListVer)

source

pub async fn terminate(&self)

source§

impl DB

source

pub async fn create_scnd_idx( &self, sv_spec: &Arc<SubValueSpec> ) -> Result<(), ScndIdxCreationJobErr>

source§

impl DB

source

pub async fn delete_scnd_idx( &self, sv_spec: &SubValueSpec ) -> Result<(), ScndIdxDeletionJobErr>

Auto Trait Implementations§

§

impl !RefUnwindSafe for DB

§

impl Send for DB

§

impl Sync for DB

§

impl Unpin for DB

§

impl !UnwindSafe for DB

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

impl<T> Erased for T