pub struct ProfiledOperator { /* private fields */ }Expand description
Wraps a pull-based Operator to collect runtime statistics.
Each call to next() is timed and the output rows
are counted. Statistics are written into a SharedProfileStats handle
so they can be collected after execution completes.
Implementations§
Source§impl ProfiledOperator
impl ProfiledOperator
Sourcepub fn new(inner: Box<dyn Operator>, stats: SharedProfileStats) -> Self
pub fn new(inner: Box<dyn Operator>, stats: SharedProfileStats) -> Self
Creates a new profiled wrapper around the given operator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfiledOperator
impl !RefUnwindSafe for ProfiledOperator
impl Send for ProfiledOperator
impl Sync for ProfiledOperator
impl Unpin for ProfiledOperator
impl UnsafeUnpin for ProfiledOperator
impl !UnwindSafe for ProfiledOperator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more