pub struct EpochDecision {
pub transition: Option<ProfileKind>,
pub target_writers: usize,
pub throughput_mbps: f64,
}Expand description
What the splitter should do after an epoch boundary.
Fields§
§transition: Option<ProfileKind>Some(kind) when the controller changed state: swap the profile
values and emit the transition log line.
target_writers: usizeDesired writer-thread count. The pool only ever grows toward this (shrinking would reassign table ownership and break output ordering).
throughput_mbps: f64Observed throughput for this epoch, for the transition log line.
Trait Implementations§
Source§impl Clone for EpochDecision
impl Clone for EpochDecision
Source§fn clone(&self) -> EpochDecision
fn clone(&self) -> EpochDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EpochDecision
Source§impl Debug for EpochDecision
impl Debug for EpochDecision
Source§impl PartialEq for EpochDecision
impl PartialEq for EpochDecision
impl StructuralPartialEq for EpochDecision
Auto Trait Implementations§
impl Freeze for EpochDecision
impl RefUnwindSafe for EpochDecision
impl Send for EpochDecision
impl Sync for EpochDecision
impl Unpin for EpochDecision
impl UnsafeUnpin for EpochDecision
impl UnwindSafe for EpochDecision
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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