pub trait Service {
type Future: Future<Output = Result<(), Error>> + Send + 'static;
// Required method
fn handle(&self, req: ContextInternal) -> Self::Future;
}
Expand description
Trait representing a Restate service.
This is used by codegen.
Required Associated Types§
Required Methods§
Sourcefn handle(&self, req: ContextInternal) -> Self::Future
fn handle(&self, req: ContextInternal) -> Self::Future
Handle an incoming request.