pub struct RunningDaemon { /* private fields */ }Expand description
A built sync daemon, ready to run. Exposes its live Status so a transport
the binary owns can serve it concurrently with the run.
Implementations§
Source§impl RunningDaemon
impl RunningDaemon
Sourcepub fn status(&self) -> Arc<Status>
pub fn status(&self) -> Arc<Status>
A handle to the live operational status, for a transport (HTTP, a TUI, …) to read while the daemon runs. Cheap to clone.
Sourcepub async fn run(self, shutdown: impl Future<Output = ()> + Send) -> Result<()>
pub async fn run(self, shutdown: impl Future<Output = ()> + Send) -> Result<()>
Run until the live stream ends, an error stops the pipeline, or shutdown
resolves — typically a signal future the binary owns. A pending batch on
shutdown is simply redelivered on the next run (at-least-once), so
dropping the run mid-flight is safe.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunningDaemon
impl !UnwindSafe for RunningDaemon
impl Freeze for RunningDaemon
impl Send for RunningDaemon
impl Sync for RunningDaemon
impl Unpin for RunningDaemon
impl UnsafeUnpin for RunningDaemon
Blanket Implementations§
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