pub struct DerivationContext {
pub cancellation: CancellationToken,
pub derived_attributes_tx: Sender<OpAttributesWithParent>,
pub reset_request_tx: Sender<()>,
}Expand description
The communication context used by the derivation actor.
Fields§
§cancellation: CancellationTokenThe cancellation token, shared between all tasks.
derived_attributes_tx: Sender<OpAttributesWithParent>Sends the derived OpAttributesWithParents produced by the actor.
reset_request_tx: Sender<()>The reset request sender, used to handle PipelineErrorKind::Reset events and forward
them to the engine.
Trait Implementations§
Source§impl CancellableContext for DerivationContext
impl CancellableContext for DerivationContext
Source§fn cancelled(&self) -> WaitForCancellationFuture<'_>
fn cancelled(&self) -> WaitForCancellationFuture<'_>
Returns a future that resolves when the actor is cancelled.
Auto Trait Implementations§
impl Freeze for DerivationContext
impl RefUnwindSafe for DerivationContext
impl Send for DerivationContext
impl Sync for DerivationContext
impl Unpin for DerivationContext
impl UnwindSafe for DerivationContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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