pub enum Sidecar {
Simple {
location_key: LocationKey,
future_expr: Box<Expr>,
},
Bidi {
location_key: LocationKey,
sidecar_id: SidecarId,
sidecar_closure: Box<Expr>,
},
}Expand description
A compile-time directive to spawn a future on a location’s LocalSet
alongside the DFIR scheduler.
Variants§
Simple
A ready-to-go future expression (e.g. telemetry metrics collection).
Bidi
A user-owned sidecar that returns a (Stream, Sink) pair to the framework.
The closure is called at startup; the returned stream feeds items into the
dataflow and the returned sink receives items from the dataflow.
Auto Trait Implementations§
impl Freeze for Sidecar
impl RefUnwindSafe for Sidecar
impl !Send for Sidecar
impl !Sync for Sidecar
impl Unpin for Sidecar
impl UnsafeUnpin for Sidecar
impl UnwindSafe for Sidecar
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.