Struct DeployRuntime

Source
pub struct DeployRuntime {}
Available on crate feature build only.

Trait Implementations§

Source§

impl ClusterSpec<'_, DeployRuntime> for ()

Source§

fn build(self, _id: usize, _name_hint: &str) -> DeployRuntimeCluster

Source§

impl<'a> Deploy<'a> for DeployRuntime

Source§

type InstantiateEnv = ()

Source§

type CompileEnv = RuntimeData<&'a DeployPorts<HydroMeta>>

Source§

type Process = DeployRuntimeNode

Source§

type Cluster = DeployRuntimeCluster

Source§

type ExternalProcess = DeployRuntimeNode

Source§

type Port = String

Source§

type ExternalRawPort = ()

Source§

type Meta = ()

Source§

type GraphId = usize

Type of ID used to switch between different subgraphs at runtime.
Source§

fn has_trivial_node() -> bool

Source§

fn trivial_process(_id: usize) -> Self::Process

Source§

fn trivial_cluster(_id: usize) -> Self::Cluster

Source§

fn allocate_process_port(process: &Self::Process) -> Self::Port

Source§

fn allocate_cluster_port(cluster: &Self::Cluster) -> Self::Port

Source§

fn allocate_external_port(_external: &Self::ExternalProcess) -> Self::Port

Source§

fn o2o_sink_source( env: &Self::CompileEnv, _p1: &Self::Process, p1_port: &Self::Port, _p2: &Self::Process, p2_port: &Self::Port, ) -> (Expr, Expr)

Source§

fn o2o_connect( _p1: &Self::Process, _p1_port: &Self::Port, _p2: &Self::Process, _p2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn o2m_sink_source( env: &Self::CompileEnv, _p1: &Self::Process, p1_port: &Self::Port, _c2: &Self::Cluster, c2_port: &Self::Port, ) -> (Expr, Expr)

Source§

fn o2m_connect( _p1: &Self::Process, _p1_port: &Self::Port, _c2: &Self::Cluster, _c2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn m2o_sink_source( env: &Self::CompileEnv, _c1: &Self::Cluster, c1_port: &Self::Port, _p2: &Self::Process, p2_port: &Self::Port, ) -> (Expr, Expr)

Source§

fn m2o_connect( _c1: &Self::Cluster, _c1_port: &Self::Port, _p2: &Self::Process, _p2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn m2m_sink_source( env: &Self::CompileEnv, _c1: &Self::Cluster, c1_port: &Self::Port, _c2: &Self::Cluster, c2_port: &Self::Port, ) -> (Expr, Expr)

Source§

fn m2m_connect( _c1: &Self::Cluster, _c1_port: &Self::Port, _c2: &Self::Cluster, _c2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn e2o_source( _compile_env: &Self::CompileEnv, _p1: &Self::ExternalProcess, _p1_port: &Self::Port, _p2: &Self::Process, _p2_port: &Self::Port, ) -> Expr

Source§

fn e2o_connect( _p1: &Self::ExternalProcess, _p1_port: &Self::Port, _p2: &Self::Process, _p2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn o2e_sink( _compile_env: &Self::CompileEnv, _p1: &Self::Process, _p1_port: &Self::Port, _p2: &Self::ExternalProcess, _p2_port: &Self::Port, ) -> Expr

Source§

fn o2e_connect( _p1: &Self::Process, _p1_port: &Self::Port, _p2: &Self::ExternalProcess, _p2_port: &Self::Port, ) -> Box<dyn FnOnce()>

Source§

fn cluster_ids( env: &Self::CompileEnv, of_cluster: usize, ) -> impl QuotedWithContext<'a, &'a [u32], ()> + Copy + 'a

Source§

fn cluster_self_id( env: &Self::CompileEnv, ) -> impl QuotedWithContext<'a, u32, ()> + Copy + 'a

Source§

impl ExternalSpec<'_, DeployRuntime> for ()

Source§

fn build(self, _id: usize, _name_hint: &str) -> DeployRuntimeNode

Source§

impl ProcessSpec<'_, DeployRuntime> for ()

Source§

fn build(self, _id: usize, _name_hint: &str) -> DeployRuntimeNode

Source§

impl<'a> RegisterPort<'a, DeployRuntime> for DeployRuntimeNode

Source§

fn register(&self, _key: usize, _port: <DeployRuntime as Deploy<'_>>::Port)

Source§

fn raw_port( &self, _key: usize, ) -> <DeployRuntime as Deploy<'_>>::ExternalRawPort

Source§

fn as_bytes_sink( &self, _key: usize, ) -> impl Future<Output = Pin<Box<dyn Sink<Bytes, Error = Error>>>> + 'a

Source§

fn as_bincode_sink<T: Serialize + 'static>( &self, _key: usize, ) -> impl Future<Output = Pin<Box<dyn Sink<T, Error = Error>>>> + 'a

Source§

fn as_bytes_source( &self, _key: usize, ) -> impl Future<Output = Pin<Box<dyn Stream<Item = Bytes>>>> + 'a

Source§

fn as_bincode_source<T: DeserializeOwned + 'static>( &self, _key: usize, ) -> impl Future<Output = Pin<Box<dyn Stream<Item = T>>>> + 'a

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<'a, T, N, C, E, M, R> LocalDeploy<'a> for T
where N: Node<Meta = M>, C: Node<Meta = M>, T: Deploy<'a, Process = N, Cluster = C, ExternalProcess = E, Meta = M, GraphId = R>, E: Node<Meta = M>, M: Default,

Source§

type Process = N

Available on crate feature build only.
Source§

type Cluster = C

Available on crate feature build only.
Source§

type ExternalProcess = E

Available on crate feature build only.
Source§

type Meta = M

Available on crate feature build only.
Source§

type GraphId = R

Available on crate feature build only.
Source§

fn has_trivial_node() -> bool

Available on crate feature build only.
Source§

fn trivial_process(id: usize) -> <T as LocalDeploy<'a>>::Process

Available on crate feature build only.
Source§

fn trivial_cluster(id: usize) -> <T as LocalDeploy<'a>>::Cluster

Available on crate feature build only.
Source§

fn trivial_external(_id: usize) -> Self::ExternalProcess

Available on crate feature build only.
Source§

impl<T> MinOrder<T> for T

Source§

type Min = T

The weaker of the two orderings.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

§

impl<T> Ungil for T
where T: Send,