pub struct WalRegistry<IO: Io, S> { /* private fields */ }
Expand description
Wal Registry maintains a set of shared Wal, and their respective set of files.
Implementations§
Source§impl<S> WalRegistry<StdIO, S>
impl<S> WalRegistry<StdIO, S>
Source§impl<IO: Io, S> WalRegistry<IO, S>
impl<IO: Io, S> WalRegistry<IO, S>
pub fn new_with_io( io: IO, storage: Arc<S>, checkpoint_notifier: Sender<CheckpointMessage>, ) -> Result<Self>
pub async fn get_async( &self, namespace: &NamespaceName, ) -> Option<Arc<SharedWal<IO>>>
Source§impl<IO, S> WalRegistry<IO, S>
impl<IO, S> WalRegistry<IO, S>
pub fn open( self: Arc<Self>, db_path: &Path, namespace: &NamespaceName, ) -> Result<Arc<SharedWal<IO>>>
pub async fn tombstone( &self, namespace: &NamespaceName, ) -> Option<Arc<SharedWal<IO>>>
pub async fn remove(&self, namespace: &NamespaceName)
Sourcepub async fn sync_all(&self, conccurency: usize) -> Result<()>where
S: Storage,
pub async fn sync_all(&self, conccurency: usize) -> Result<()>where
S: Storage,
Attempts to sync all loaded dbs with durable storage
pub async fn shutdown(self: Arc<Self>) -> Result<()>
pub fn storage(&self) -> Arc<S>
Auto Trait Implementations§
impl<IO, S> !Freeze for WalRegistry<IO, S>
impl<IO, S> !RefUnwindSafe for WalRegistry<IO, S>
impl<IO, S> Send for WalRegistry<IO, S>
impl<IO, S> Sync for WalRegistry<IO, S>
impl<IO, S> Unpin for WalRegistry<IO, S>
impl<IO, S> !UnwindSafe for WalRegistry<IO, S>
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 moreCreates a shared type from an unshared type.