pub struct SharedWal<IO: Io> { /* private fields */ }
Implementations§
pub fn shutdown(&self) -> Result<()>
pub fn new_frame_notifier(&self) -> Receiver<u64>
pub fn db_size(&self) -> u32
pub fn log_id(&self) -> Uuid
pub fn durable_frame_no(&self) -> u64
pub fn begin_read(&self, conn_id: u64) -> ReadTransaction<IO::File>
Sourcepub fn upgrade(&self, tx: &mut Transaction<IO::File>) -> Result<()>
pub fn upgrade(&self, tx: &mut Transaction<IO::File>) -> Result<()>
Upgrade a read transaction to a write transaction
pub fn read_page( &self, tx: &mut Transaction<IO::File>, page_no: u32, buffer: &mut [u8], ) -> Result<()>
pub fn insert_frames<'a>( &self, tx: &mut WriteTransaction<IO::File>, pages: impl Iterator<Item = (u32, &'a [u8])>, size_after: Option<u32>, ) -> Result<()>
Sourcepub fn seal_current(&self) -> Result<()>
pub fn seal_current(&self) -> Result<()>
Cut the current log, and register it for storage
pub async fn checkpoint(&self) -> Result<Option<u64>>
pub fn last_committed_frame_no(&self) -> u64
pub fn namespace(&self) -> &NamespaceName
Auto Trait Implementations§
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.