pub struct PerfThresholdsBuilder {
mean: Option<Threshold<u64>>,
}Expand description
Builder for PerfThresholds.
Fields§
§mean: Option<Threshold<u64>>Implementations§
Source§impl PerfThresholdsBuilder
impl PerfThresholdsBuilder
pub fn mean(&mut self, value: Threshold<u64>) -> &mut Self
Sourcepub fn build(&self) -> Result<PerfThresholds, PerfThresholdsBuilderError>
pub fn build(&self) -> Result<PerfThresholds, PerfThresholdsBuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None or PhantomData.
Trait Implementations§
Source§impl Clone for PerfThresholdsBuilder
impl Clone for PerfThresholdsBuilder
Source§fn clone(&self) -> PerfThresholdsBuilder
fn clone(&self) -> PerfThresholdsBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 PerfThresholdsBuilder
impl RefUnwindSafe for PerfThresholdsBuilder
impl Send for PerfThresholdsBuilder
impl Sync for PerfThresholdsBuilder
impl Unpin for PerfThresholdsBuilder
impl UnwindSafe for PerfThresholdsBuilder
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