pub struct ReplicatedNativeApp { /* private fields */ }Expand description
One native App executed as a fixed set of Plan-declared single-owner Kernel lanes.
Implementations§
Source§impl ReplicatedNativeApp
impl ReplicatedNativeApp
Sourcepub fn start<F>(
plan: ResolvedAppPlan,
adapters: F,
) -> Result<Self, ReplicatedRunnerError>
pub fn start<F>( plan: ResolvedAppPlan, adapters: F, ) -> Result<Self, ReplicatedRunnerError>
Starts one unmodified Kernel replica per declared Execution Lane.
Sourcepub fn start_fallible<F>(
plan: ResolvedAppPlan,
adapters: F,
) -> Result<Self, ReplicatedRunnerError>
pub fn start_fallible<F>( plan: ResolvedAppPlan, adapters: F, ) -> Result<Self, ReplicatedRunnerError>
Starts every declared lane with fallible lane-local Adapter assembly.
Sourcepub fn start_fallible_with_timeout<F>(
plan: ResolvedAppPlan,
adapters: F,
ready_timeout: Duration,
) -> Result<Self, ReplicatedRunnerError>
pub fn start_fallible_with_timeout<F>( plan: ResolvedAppPlan, adapters: F, ready_timeout: Duration, ) -> Result<Self, ReplicatedRunnerError>
Starts every lane and fails closed unless the complete Lane Set is Ready in time.
Sourcepub fn start_with_transfers<F>(
plan: ResolvedAppPlan,
adapters: F,
transfers: CrossLaneRequestCatalog,
) -> Result<Self, ReplicatedRunnerError>
pub fn start_with_transfers<F>( plan: ResolvedAppPlan, adapters: F, transfers: CrossLaneRequestCatalog, ) -> Result<Self, ReplicatedRunnerError>
Starts replicated lanes with generated request types allowed to cross them.
Sourcepub fn start_with_transfer_catalog<F>(
plan: ResolvedAppPlan,
adapters: F,
transfers: CrossLaneTransferCatalog,
) -> Result<Self, ReplicatedRunnerError>
pub fn start_with_transfer_catalog<F>( plan: ResolvedAppPlan, adapters: F, transfers: CrossLaneTransferCatalog, ) -> Result<Self, ReplicatedRunnerError>
Starts replicated lanes with generated values allowed to cross them without serialization.
Sourcepub fn start_with_fallible_transfer_catalog<F>(
plan: ResolvedAppPlan,
adapters: F,
transfers: CrossLaneTransferCatalog,
ready_timeout: Option<Duration>,
) -> Result<Self, ReplicatedRunnerError>
pub fn start_with_fallible_transfer_catalog<F>( plan: ResolvedAppPlan, adapters: F, transfers: CrossLaneTransferCatalog, ready_timeout: Option<Duration>, ) -> Result<Self, ReplicatedRunnerError>
Starts a complete Lane Set with fallible Adapters, transfers, and one Ready deadline.
Sourcepub fn lane_count(&self) -> usize
pub fn lane_count(&self) -> usize
Returns the fixed number of Kernel replicas started from the Plan.
Sourcepub fn diagnostics_snapshot(&self) -> LaneDiagnosticsSnapshot
pub fn diagnostics_snapshot(&self) -> LaneDiagnosticsSnapshot
Returns structural evidence for placement decisions without exposing payloads.
Sourcepub fn terminal_failure(&self) -> Option<ReplicatedRunnerError>
pub fn terminal_failure(&self) -> Option<ReplicatedRunnerError>
Returns the first App-terminal lane failure, when one has occurred.
Sourcepub async fn wait_for_terminal(&self) -> ReplicatedRunnerError
pub async fn wait_for_terminal(&self) -> ReplicatedRunnerError
Waits until one lane makes the replicated App terminal.
Sourcepub fn route(&self) -> ReplicatedAppRoute
pub fn route(&self) -> ReplicatedAppRoute
Projects a cloneable route which remains pinned by its Generation Lease.
Source§impl ReplicatedNativeApp
impl ReplicatedNativeApp
Sourcepub async fn invoke<C: RequestCapability>(
&self,
caller_instance: &str,
operation: &str,
request: C::Request,
) -> Result<Result<C::Response, C::DomainError>, RuntimeFailure>
pub async fn invoke<C: RequestCapability>( &self, caller_instance: &str, operation: &str, request: C::Request, ) -> Result<Result<C::Response, C::DomainError>, RuntimeFailure>
Invokes one generated request Capability on its Plan-placed provider lane.
Sourcepub async fn invoke_with_options<C: RequestCapability>(
&self,
caller_instance: &str,
operation: &str,
request: C::Request,
options: LaneInvocationOptions,
) -> Result<Result<C::Response, C::DomainError>, RuntimeFailure>
pub async fn invoke_with_options<C: RequestCapability>( &self, caller_instance: &str, operation: &str, request: C::Request, options: LaneInvocationOptions, ) -> Result<Result<C::Response, C::DomainError>, RuntimeFailure>
Invokes one generated request with Driver-relative controls.