Struct OnlineTunerBuilder
pub struct OnlineTunerBuilder { /* private fields */ }Expand description
A builder for an OnlineTuner.
Implementations§
§impl OnlineTunerBuilder
impl OnlineTunerBuilder
pub const fn direction(self, direction: Direction) -> Self
pub const fn direction(self, direction: Direction) -> Self
Sets the optimization direction (default Direction::Maximize).
pub const fn flush_every(self, interval: u64) -> Self
pub const fn flush_every(self, interval: u64) -> Self
Records a flush interval, in rounds, surfaced through
OnlineTuner::is_flush_boundary — the cue to snapshot the tuner to a
journal off the hot path. Optional; the hot path is identical either way.
pub fn build(self) -> Result<OnlineTuner>
pub fn build(self) -> Result<OnlineTuner>
Validates and builds the OnlineTuner.
§Errors
Error::InvalidSpace if there are no
clusters, a cluster name is duplicated, a cluster has no values or a
non-finite one, the Mabc window is 0 or above MAX_WINDOW, the
PbtLite period is 0, or a perturbation factor is not finite and
positive.
Trait Implementations§
§impl Clone for OnlineTunerBuilder
impl Clone for OnlineTunerBuilder
§fn clone(&self) -> OnlineTunerBuilder
fn clone(&self) -> OnlineTunerBuilder
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 moreAuto Trait Implementations§
impl Freeze for OnlineTunerBuilder
impl RefUnwindSafe for OnlineTunerBuilder
impl Send for OnlineTunerBuilder
impl Sync for OnlineTunerBuilder
impl Unpin for OnlineTunerBuilder
impl UnsafeUnpin for OnlineTunerBuilder
impl UnwindSafe for OnlineTunerBuilder
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