Struct ControlPlaneHandle
pub struct ControlPlaneHandle {
pub store: Arc<dyn TaskRegistry>,
pub boot_id: String,
}Expand description
The live control-plane, shared (cheaply, via Arc/clone) across producers and
the reaper.
Fields§
§store: Arc<dyn TaskRegistry>§boot_id: StringImplementations§
Source§impl ControlPlaneHandle
impl ControlPlaneHandle
pub async fn start(data_dir: &Path) -> Result<Self>
Sourcepub async fn start_with_boot_id(
data_dir: &Path,
boot_id: String,
) -> Result<Self>
pub async fn start_with_boot_id( data_dir: &Path, boot_id: String, ) -> Result<Self>
As Self::start but with a caller-supplied boot_id — lets DaemonRegistry
reuse a process-stable run-id across reloads instead of a fresh UUID.
pub fn spawn_reaper( &self, max_runtime_secs: i64, cancel: CancellationToken, ) -> JoinHandle<()>
Trait Implementations§
Source§impl Clone for ControlPlaneHandle
impl Clone for ControlPlaneHandle
Source§fn clone(&self) -> ControlPlaneHandle
fn clone(&self) -> ControlPlaneHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlPlaneHandle
impl !RefUnwindSafe for ControlPlaneHandle
impl Send for ControlPlaneHandle
impl Sync for ControlPlaneHandle
impl Unpin for ControlPlaneHandle
impl UnsafeUnpin for ControlPlaneHandle
impl !UnwindSafe for ControlPlaneHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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