pub struct FlowWorker { /* private fields */ }Expand description
One directional replication flow: the running connect runtime plus the heartbeat and checkpoint background tasks.
Implementations§
Source§impl FlowWorker
impl FlowWorker
Sourcepub async fn start(p: FlowWorkerParams) -> Result<Self>
pub async fn start(p: FlowWorkerParams) -> Result<Self>
Build and start the pipeline, retrying transient build failures with bounded exponential backoff (a cluster may be briefly unreachable).
Backoff starts at ~250ms and doubles (capped at ~8s) until the cumulative elapsed time exceeds ~30s, after which the last build error is returned.
§Errors
Returns the last build error if the pipeline cannot be constructed within the retry budget.
Sourcepub fn state(&self) -> RuntimeState
pub fn state(&self) -> RuntimeState
Current connect-runtime state, for the supervisor to detect Failed
workers and restart them.
Auto Trait Implementations§
impl Freeze for FlowWorker
impl RefUnwindSafe for FlowWorker
impl Send for FlowWorker
impl Sync for FlowWorker
impl Unpin for FlowWorker
impl UnsafeUnpin for FlowWorker
impl UnwindSafe for FlowWorker
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