pub struct OperatorWrapper<O: BaseOperator> {
pub waker: Arc<CountingWaker>,
pub operator: O,
}Expand description
Wrapper around an operator that provides extra utilities to reduce boiler plate.
All poll_ helper method currently shared the same counting waker.
Fields§
§waker: Arc<CountingWaker>§operator: OImplementations§
Source§impl<O> OperatorWrapper<O>where
O: BaseOperator,
impl<O> OperatorWrapper<O>where
O: BaseOperator,
Source§impl<O> OperatorWrapper<O>where
O: ExecuteOperator,
impl<O> OperatorWrapper<O>where
O: ExecuteOperator,
pub fn poll_execute( &self, operator_state: &O::OperatorState, state: &mut O::PartitionExecuteState, input: &mut Batch, output: &mut Batch, ) -> Result<PollExecute>
pub fn poll_finalize_execute( &self, operator_state: &O::OperatorState, state: &mut O::PartitionExecuteState, ) -> Result<PollFinalize>
Source§impl<O> OperatorWrapper<O>where
O: PullOperator,
impl<O> OperatorWrapper<O>where
O: PullOperator,
pub fn poll_pull( &self, operator_state: &O::OperatorState, state: &mut O::PartitionPullState, output: &mut Batch, ) -> Result<PollPull>
Source§impl<O> OperatorWrapper<O>where
O: PushOperator,
impl<O> OperatorWrapper<O>where
O: PushOperator,
pub fn poll_push( &self, operator_state: &O::OperatorState, state: &mut O::PartitionPushState, input: &mut Batch, ) -> Result<PollPush>
pub fn poll_finalize_push( &self, operator_state: &O::OperatorState, state: &mut O::PartitionPushState, ) -> Result<PollFinalize>
Auto Trait Implementations§
impl<O> Freeze for OperatorWrapper<O>where
O: Freeze,
impl<O> RefUnwindSafe for OperatorWrapper<O>where
O: RefUnwindSafe,
impl<O> Send for OperatorWrapper<O>
impl<O> Sync for OperatorWrapper<O>
impl<O> Unpin for OperatorWrapper<O>where
O: Unpin,
impl<O> UnsafeUnpin for OperatorWrapper<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for OperatorWrapper<O>where
O: UnwindSafe,
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