pub struct ProfileValues { /* private fields */ }Expand description
The runtime-swappable subset of a WriterProfile, shared between the
producer, the writer threads, and the controller.
Writer count is deliberately absent: it can only grow (each table is owned by one thread, and that ownership is what keeps output byte-identical), so growth is a structural operation on the pool, not a value swap. Everything else is a plain number read at flush points, so a relaxed atomic swap retunes the pipeline mid-run with zero coordination.
Implementations§
Source§impl ProfileValues
impl ProfileValues
Sourcepub fn new(profile: &WriterProfile) -> Self
pub fn new(profile: &WriterProfile) -> Self
Initialize from a profile.
Sourcepub fn apply(&self, profile: &WriterProfile)
pub fn apply(&self, profile: &WriterProfile)
Swap in a new profile’s values (a controller transition).
pub fn flush_chunk(&self) -> usize
pub fn file_buf(&self) -> usize
pub fn stage_cap(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProfileValues
impl RefUnwindSafe for ProfileValues
impl Send for ProfileValues
impl Sync for ProfileValues
impl Unpin for ProfileValues
impl UnsafeUnpin for ProfileValues
impl UnwindSafe for ProfileValues
Blanket Implementations§
impl<T> Allocation for T
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> 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