pub trait RuntimeRequestHandler: Send + Sync {
// Required method
fn handle<'a>(
&'a self,
request: RuntimeRequest,
control: RunControl,
) -> PortFuture<'a, RuntimeReply>;
}Expand description
Invocation-scoped callback. Implementations bind authority outside the child payload. Dropping this future may leave a remote write uncertain; handlers must fence stale attempts and make repeated operations idempotent. A successful reply must acknowledge the requested operation before execution may continue.
Required Methods§
fn handle<'a>( &'a self, request: RuntimeRequest, control: RunControl, ) -> PortFuture<'a, RuntimeReply>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".