Struct below_model::collector::Collector
source · [−]pub struct Collector { /* private fields */ }Expand description
Collects data samples and maintains the latest data
Implementations
sourceimpl Collector
impl Collector
pub fn new(logger: Logger, collector_options: CollectorOptions) -> Self
pub fn collect_sample(&self) -> Result<Sample>
sourcepub fn collect_and_update_model(&mut self) -> Result<Model>
pub fn collect_and_update_model(&mut self) -> Result<Model>
Collect a new Sample, returning an updated Model
Auto Trait Implementations
impl RefUnwindSafe for Collector
impl Send for Collector
impl Sync for Collector
impl Unpin for Collector
impl UnwindSafe for Collector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more