pub struct PerCoreWalBufferPool { /* private fields */ }Implementations§
Source§impl PerCoreWalBufferPool
impl PerCoreWalBufferPool
pub fn new(core_count: usize, config: BufferConfig) -> Self
pub fn append_to_core( &self, core_id: usize, record: WalRecord, ) -> Result<AppendOutcome, String>
pub fn append_batch_to_core( &self, core_id: usize, records: Vec<WalRecord>, ) -> Result<AppendOutcome, String>
pub fn contention_events_total(&self) -> u64
pub fn core_count(&self) -> usize
pub fn seal_active_for_epoch(&self, epoch: u64) -> Result<usize, String>
pub fn flush_epoch_batches( &self, epoch: u64, ) -> Result<(Vec<WalRecord>, Vec<usize>), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerCoreWalBufferPool
impl RefUnwindSafe for PerCoreWalBufferPool
impl Send for PerCoreWalBufferPool
impl Sync for PerCoreWalBufferPool
impl Unpin for PerCoreWalBufferPool
impl UnsafeUnpin for PerCoreWalBufferPool
impl UnwindSafe for PerCoreWalBufferPool
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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 more