pub enum InstanceState {
Creating(Timestamp),
Loaded(Timestamp),
Running(Timestamp),
Aborted(Timestamp),
Failed((Timestamp, String)),
}Expand description
The different states of a DataFlowInstance.
Note that a state is tied to a Zenoh-Flow runtime: if a data flow is distributed across multiple Zenoh-Flow runtimes, their respective state for the same instance could be different (but should eventually converge).
Variants§
Creating(Timestamp)
A runtime listing a DataFlowInstance in the Creating state is in the process of loading all the nodes it
manages.
Loaded(Timestamp)
A runtime listing a DataFlowInstance in the Loaded state successfully instantiated all the nodes it manages
and is ready to start them.
A Loaded data flow can be started or deleted.
Running(Timestamp)
A runtime listing a DataFlowInstance in the Running state has (re)started all the nodes it manages.
A Running data flow can be aborted or deleted.
Aborted(Timestamp)
A runtime listing a DataFlowInstance in the Aborted state has abruptly stopped all the nodes it manages.
An Aborted data flow can be restarted or deleted.
Failed((Timestamp, String))
A runtime listing a DataFlowInstance in the Failed state failed to load at least one of the nodes of this
instance it manages.
A data flow in the Failed state can only be deleted.
Trait Implementations§
Source§impl Clone for InstanceState
impl Clone for InstanceState
Source§fn clone(&self) -> InstanceState
fn clone(&self) -> InstanceState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more