[][src]Trait metrics_core::Drain

pub trait Drain<T> {
    fn drain(&mut self) -> T;
}

A value that can produce a T by draining its content.

After being drained, the value should be ready to be reused.

Required methods

fn drain(&mut self) -> T

Drain the Observer, producing a T.

Loading content...

Implementors

Loading content...