pub struct OperatorSlot<'scope, T: Timestamp> { /* private fields */ }Expand description
A reservation for an operator at a specific position in a parent Scope.
Returned by Scope::reserve_operator and [SubscopeHandle::build]. The
slot carries the scope-local index and the worker-unique identifier of the
operator-to-be. It must be consumed by OperatorSlot::install before
being dropped; dropping an unfilled slot panics, since the parent scope
expects the reserved index to eventually be filled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'scope, T> Freeze for OperatorSlot<'scope, T>
impl<'scope, T> !RefUnwindSafe for OperatorSlot<'scope, T>
impl<'scope, T> !Send for OperatorSlot<'scope, T>
impl<'scope, T> !Sync for OperatorSlot<'scope, T>
impl<'scope, T> Unpin for OperatorSlot<'scope, T>
impl<'scope, T> UnsafeUnpin for OperatorSlot<'scope, T>
impl<'scope, T> !UnwindSafe for OperatorSlot<'scope, T>
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