pub enum ControlRequestReply {
Show 34 variants
Error(String),
CoordinatorStopped,
HelloOk {
dora_version: Version,
},
DataflowBuildTriggered {
build_id: BuildId,
},
DataflowBuildFinished {
build_id: BuildId,
result: Result<(), String>,
},
DataflowStartTriggered {
uuid: Uuid,
},
DataflowSpawned {
uuid: Uuid,
},
DataflowReloaded {
uuid: Uuid,
},
DataflowStopped {
uuid: Uuid,
result: DataflowResult,
},
DataflowRestarted {
old_uuid: Uuid,
new_uuid: Uuid,
},
DataflowList(DataflowList),
CleanResult {
cleaned: DataflowList,
failed: Vec<CleanFailure>,
},
DataflowInfo {
uuid: Uuid,
name: Option<String>,
descriptor: Descriptor,
},
DestroyOk,
DaemonConnected(bool),
ConnectedDaemons(Vec<DaemonInfo>),
Logs(Vec<u8>),
CliAndDefaultDaemonIps {
default_daemon: Option<IpAddr>,
cli: Option<IpAddr>,
},
NodeInfoList(Vec<NodeInfo>),
TopicSubscribed {
subscription_id: Uuid,
protocol_version: Option<u16>,
},
TraceList(Vec<TraceSummary>),
TraceSpans(Vec<TraceSpan>),
NodeRestarted {
dataflow_id: Uuid,
node_id: NodeId,
},
NodeStopped {
dataflow_id: Uuid,
node_id: NodeId,
},
TopicPublished,
NodeAdded {
dataflow_id: Uuid,
node_id: NodeId,
},
NodeRemoved {
dataflow_id: Uuid,
node_id: NodeId,
},
NodeReplaced {
dataflow_id: Uuid,
node_id: NodeId,
},
MappingAdded {
dataflow_id: Uuid,
source_node: NodeId,
source_output: DataId,
target_node: NodeId,
target_input: DataId,
},
MappingRemoved {
dataflow_id: Uuid,
source_node: NodeId,
source_output: DataId,
target_node: NodeId,
target_input: DataId,
},
ParamList {
params: Vec<(String, Value)>,
},
ParamValue {
key: String,
value: Value,
},
ParamSet,
ParamDeleted,
}Variants§
Error(String)
CoordinatorStopped
HelloOk
Response to ControlRequest::Hello.
Carries the coordinator’s own dora crate version so the CLI can
display it on version mismatches and in debug output
(dora-rs/adora#151).
DataflowBuildTriggered
DataflowBuildFinished
DataflowStartTriggered
DataflowSpawned
DataflowReloaded
DataflowStopped
DataflowRestarted
DataflowList(DataflowList)
CleanResult
Response to ControlRequest::Clean.
cleaned lists dataflows the coordinator successfully removed
from both in-memory state and the persisted store (with the
cascade-delete of associated dora param rows). failed lists
dataflows that were eligible but whose persisted-store delete
errored: their in-memory entries are preserved so a later
dora clean can retry. The CLI needs both lists to tell
“nothing eligible” apart from “all candidates failed to clean”.
DataflowInfo
DestroyOk
DaemonConnected(bool)
ConnectedDaemons(Vec<DaemonInfo>)
Logs(Vec<u8>)
CliAndDefaultDaemonIps
NodeInfoList(Vec<NodeInfo>)
TopicSubscribed
Fields
protocol_version: Option<u16>Binary-frame encoding the coordinator will send, see
TOPIC_DATA_PROTOCOL_VERSION.
None means the coordinator predates the handshake and therefore
sends bincode frames; the client rejects the subscription rather
than misparse them as postcard.
TraceList(Vec<TraceSummary>)
TraceSpans(Vec<TraceSpan>)
NodeRestarted
NodeStopped
TopicPublished
NodeAdded
NodeRemoved
NodeReplaced
MappingAdded
Fields
MappingRemoved
Fields
ParamList
ParamValue
ParamSet
ParamDeleted
Trait Implementations§
Source§impl Clone for ControlRequestReply
impl Clone for ControlRequestReply
Source§impl Debug for ControlRequestReply
impl Debug for ControlRequestReply
Source§impl<'de> Deserialize<'de> for ControlRequestReply
impl<'de> Deserialize<'de> for ControlRequestReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ControlRequestReply
impl RefUnwindSafe for ControlRequestReply
impl Send for ControlRequestReply
impl Sync for ControlRequestReply
impl Unpin for ControlRequestReply
impl UnsafeUnpin for ControlRequestReply
impl UnwindSafe for ControlRequestReply
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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