pub struct DeployFlow<'a, D>where
D: Deploy<'a>,{ /* private fields */ }Available on crate feature
build only.Implementations§
Source§impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
pub fn ir(&self) -> &Vec<HydroRoot>
pub fn with_process_id_name( self, process_id: usize, process_name: String, spec: impl IntoProcessSpec<'a, D>, ) -> Self
pub fn with_process<P>( self, process: &Process<'_, P>, spec: impl IntoProcessSpec<'a, D>, ) -> Self
pub fn with_remaining_processes<S: IntoProcessSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> Self
pub fn with_external<P>( self, process: &External<'_, P>, spec: impl ExternalSpec<'a, D>, ) -> Self
pub fn with_remaining_externals<S: ExternalSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> Self
pub fn with_cluster_id_name( self, cluster_id: usize, cluster_name: String, spec: impl ClusterSpec<'a, D>, ) -> Self
pub fn with_cluster<C>( self, cluster: &Cluster<'_, C>, spec: impl ClusterSpec<'a, D>, ) -> Self
pub fn with_remaining_clusters<S: ClusterSpec<'a, D> + 'a>( self, spec: impl Fn() -> S, ) -> Self
Sourcepub fn preview_compile(&mut self) -> CompiledFlow<'a>
pub fn preview_compile(&mut self) -> CompiledFlow<'a>
Compiles the flow into DFIR (dfir_lang::graph::DfirGraph) without networking.
Useful for generating Mermaid diagrams of the DFIR.
(This returned DFIR will not compile due to the networking missing).
Source§impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
Sourcepub fn compile(&mut self) -> CompiledFlow<'a>
pub fn compile(&mut self) -> CompiledFlow<'a>
Compiles the flow into DFIR (dfir_lang::graph::DfirGraph) including networking.
(This does not compile the DFIR itself, instead use Self::deploy to compile & deploy the DFIR).
Sourcepub fn deploy(self, env: &mut D::InstantiateEnv) -> DeployResult<'a, D>
pub fn deploy(self, env: &mut D::InstantiateEnv) -> DeployResult<'a, D>
Compiles and deploys the flow.
Rough outline of steps:
- Compiles the Hydro into DFIR.
- Instantiates nodes as configured.
- Compiles the corresponding DFIR into binaries for nodes as needed.
- Connects up networking as needed.
Auto Trait Implementations§
impl<'a, D> Freeze for DeployFlow<'a, D>
impl<'a, D> !RefUnwindSafe for DeployFlow<'a, D>
impl<'a, D> !Send for DeployFlow<'a, D>
impl<'a, D> !Sync for DeployFlow<'a, D>
impl<'a, D> Unpin for DeployFlow<'a, D>
impl<'a, D> !UnwindSafe for DeployFlow<'a, D>
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
§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 moreCreates a shared type from an unshared type.