pub struct FlowSupervisor { /* private fields */ }Expand description
Control plane that owns and supervises the per-flow replication workers.
Implementations§
Source§impl FlowSupervisor
impl FlowSupervisor
Sourcepub async fn run(config: ReplicatorConfig) -> Result<Self>
pub async fn run(config: ReplicatorConfig) -> Result<Self>
Validate config, resolve and start one FlowWorker per flow, then
spawn a supervision loop that owns the workers and restarts any that
enter RuntimeState::Failed.
For each flow the source cluster’s topics are listed and filtered by the flow’s topic selector, excluding already-remote topics (default-naming loop guard) and Kafka/replicator internal topics.
§Errors
Returns ReplicatorError if the config is invalid, a source cluster
cannot be reached for topic discovery, a selector fails to compile, or an
initial worker fails to build within its retry budget.
Auto Trait Implementations§
impl Freeze for FlowSupervisor
impl RefUnwindSafe for FlowSupervisor
impl Send for FlowSupervisor
impl Sync for FlowSupervisor
impl Unpin for FlowSupervisor
impl UnsafeUnpin for FlowSupervisor
impl UnwindSafe for FlowSupervisor
Blanket Implementations§
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