pub enum Event {
Show 16 variants
Node {
dataflow_id: DataflowId,
node_id: NodeId,
event: DaemonNodeEvent,
},
Daemon(InterDaemonEvent),
Dora(DoraEvent),
DynamicNode(DynamicNodeEventWrapper),
HeartbeatInterval,
MetricsInterval,
CtrlC,
StopAfter(Duration),
SecondCtrlC,
DaemonError(Report),
Destroy,
SpawnRequest {
build_id: Option<BuildId>,
dataflow_id: DataflowId,
local_working_dir: Option<PathBuf>,
nodes: BTreeMap<NodeId, ResolvedNode>,
dataflow_descriptor: Descriptor,
spawn_nodes: BTreeSet<NodeId>,
uv: bool,
write_events_to: Option<PathBuf>,
reply_tx: Sender<Result<(), String>>,
},
StopDataflowRequest {
dataflow_id: DataflowId,
grace_duration: Option<Duration>,
force: bool,
reply_tx: Sender<Result<(), String>>,
},
SpawnNodeResult {
dataflow_id: DataflowId,
node_id: NodeId,
dynamic_node: bool,
result: Result<RunningNode, NodeError>,
},
SpawnDataflowResult {
dataflow_id: Uuid,
result: Result<()>,
},
NodeStopped {
dataflow_id: Uuid,
node_id: NodeId,
},
}Variants§
Node
Daemon(InterDaemonEvent)
Dora(DoraEvent)
DynamicNode(DynamicNodeEventWrapper)
HeartbeatInterval
MetricsInterval
CtrlC
StopAfter(Duration)
SecondCtrlC
DaemonError(Report)
Destroy
Coordinator requested a destroy — shut down the daemon.
SpawnRequest
Coordinator requested spawning nodes (routed from RPC server).
Fields
§
dataflow_id: DataflowId§
nodes: BTreeMap<NodeId, ResolvedNode>§
dataflow_descriptor: DescriptorStopDataflowRequest
Coordinator requested stopping a dataflow (routed from RPC server).
Fields
§
dataflow_id: DataflowIdSpawnNodeResult
SpawnDataflowResult
NodeStopped
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl !UnwindSafe for Event
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request