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_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 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 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 on its provider lane.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReplicatedNativeApp
impl !UnwindSafe for ReplicatedNativeApp
impl Freeze for ReplicatedNativeApp
impl Send for ReplicatedNativeApp
impl Sync for ReplicatedNativeApp
impl Unpin for ReplicatedNativeApp
impl UnsafeUnpin for ReplicatedNativeApp
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