pub struct Collector { /* private fields */ }Expand description
Collects data samples and maintains the latest data
Implementations§
Source§impl Collector
impl Collector
pub fn new(logger: Logger, collector_options: CollectorOptions) -> Self
pub fn collect_sample(&mut 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 !Freeze for Collector
impl !RefUnwindSafe for Collector
impl Send for Collector
impl !Sync for Collector
impl Unpin for Collector
impl UnwindSafe for Collector
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