pub struct FileControlPlane { /* private fields */ }Expand description
The file-defined host: the engine’s ControlPlane answered from a Pipeline definition.
Heartbeat = run until the stop flag; the build record prints as a status line (there is no
server to send it to).
Implementations§
Trait Implementations§
Source§impl ControlPlane for FileControlPlane
impl ControlPlane for FileControlPlane
Source§fn topology<'life0, 'life1, 'async_trait>(
&'life0 self,
_pipeline: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Topology, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn topology<'life0, 'life1, 'async_trait>(
&'life0 self,
_pipeline: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Topology, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The pipeline’s stream topology (definition only — the engine parses/validates the steps).
Source§fn resolve_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
dataset: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Binding, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
dataset: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Binding, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve a dataset to its source and sink factories, failing loudly for a dataset the host
does not know.
Source§fn publishes<'life0, 'life1, 'async_trait>(
&'life0 self,
dataset: &'life1 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publishes<'life0, 'life1, 'async_trait>(
&'life0 self,
dataset: &'life1 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Whether an intermediate dataset (one a later stage reads) is also written to its own
destination, as well as read in memory by the later stages:
true when the host was told
to publish it, such as a pipeline file that declares a sink or topic for it. The
default is false, so a host that gives every dataset a destination does not start
writing every intermediate.Source§fn heartbeat<'life0, 'life1, 'async_trait>(
&'life0 self,
_build_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = BuildSignal> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn heartbeat<'life0, 'life1, 'async_trait>(
&'life0 self,
_build_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = BuildSignal> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Liveness + control: one round-trip carries both (the echo tells the engine to stop).
Source§fn put_record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_build_id: &'life1 str,
record: &'life2 J,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_build_id: &'life1 str,
record: &'life2 J,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Persist the build record (status, metrics, timestamps). Best-effort; hosts log failures.
Auto Trait Implementations§
impl Freeze for FileControlPlane
impl RefUnwindSafe for FileControlPlane
impl Send for FileControlPlane
impl Sync for FileControlPlane
impl Unpin for FileControlPlane
impl UnsafeUnpin for FileControlPlane
impl UnwindSafe for FileControlPlane
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request