Struct hydro_lang::builder::FlowBuilder
source · pub struct FlowBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> FlowBuilder<'a>
impl<'a> FlowBuilder<'a>
pub fn new() -> FlowBuilder<'a>
pub fn finalize(self) -> BuiltFlow<'a>
pub fn with_default_optimize<D: LocalDeploy<'a>>(self) -> DeployFlow<'a, D>
pub fn optimize_with( self, f: impl FnOnce(Vec<HydroLeaf>) -> Vec<HydroLeaf>, ) -> BuiltFlow<'a>
pub fn flow_state(&self) -> &FlowState
pub fn process<P>(&self) -> Process<'a, P>
pub fn external_process<P>(&self) -> ExternalProcess<'a, P>
pub fn cluster<C>(&self) -> Cluster<'a, C>
pub fn with_process<P, D: LocalDeploy<'a>>( self, process: &Process<'_, P>, spec: impl IntoProcessSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn with_external<P, D: LocalDeploy<'a>>( self, process: &ExternalProcess<'_, P>, spec: impl ExternalSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn with_cluster<C, D: LocalDeploy<'a>>( self, cluster: &Cluster<'_, C>, spec: impl ClusterSpec<'a, D>, ) -> DeployFlow<'a, D>
pub fn compile<D: Deploy<'a>>( self, env: &D::CompileEnv, ) -> CompiledFlow<'a, D::GraphId>
pub fn compile_no_network<D: LocalDeploy<'a>>( self, ) -> CompiledFlow<'a, D::GraphId>
pub fn deploy<D: Deploy<'a, CompileEnv = ()>>( self, env: &mut D::InstantiateEnv, ) -> DeployResult<'a, D>
Trait Implementations§
source§impl Drop for FlowBuilder<'_>
impl Drop for FlowBuilder<'_>
source§impl QuotedContext for FlowBuilder<'_>
impl QuotedContext for FlowBuilder<'_>
Auto Trait Implementations§
impl<'a> !Freeze for FlowBuilder<'a>
impl<'a> !RefUnwindSafe for FlowBuilder<'a>
impl<'a> !Send for FlowBuilder<'a>
impl<'a> !Sync for FlowBuilder<'a>
impl<'a> Unpin for FlowBuilder<'a>
impl<'a> !UnwindSafe for FlowBuilder<'a>
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> ⓘ
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