pub struct DeployFlow<'a, D: LocalDeploy<'a>> { /* private fields */ }
Available on crate feature
build
only.Implementations§
Source§impl<'a, D: LocalDeploy<'a>> DeployFlow<'a, D>
impl<'a, D: LocalDeploy<'a>> DeployFlow<'a, D>
pub fn ir(&self) -> &Vec<HydroLeaf>
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: &ExternalProcess<'_, 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<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(&self) -> CompiledFlow<'a, ()>
pub fn preview_compile(&self) -> CompiledFlow<'a, ()>
Compiles the flow into DFIR using placeholders for the network. Useful for generating Mermaid diagrams of the DFIR.
pub fn compile_no_network(self) -> CompiledFlow<'a, D::GraphId>
Source§impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
impl<'a, D: Deploy<'a>> DeployFlow<'a, D>
pub fn compile(self, env: &D::CompileEnv) -> CompiledFlow<'a, D::GraphId>
Source§impl<'a, D: Deploy<'a, CompileEnv = ()>> DeployFlow<'a, D>
impl<'a, D: Deploy<'a, CompileEnv = ()>> DeployFlow<'a, D>
pub fn deploy(self, env: &mut D::InstantiateEnv) -> DeployResult<'a, D>
Trait Implementations§
Source§impl<'a, D: LocalDeploy<'a>> Drop for DeployFlow<'a, D>
impl<'a, D: LocalDeploy<'a>> Drop for DeployFlow<'a, D>
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>where
D: Unpin,
<D as LocalDeploy<'a>>::Process: Unpin,
<D as LocalDeploy<'a>>::ExternalProcess: Unpin,
<D as LocalDeploy<'a>>::Cluster: Unpin,
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 more