Skip to main content

emit_service_handler_interface

Function emit_service_handler_interface 

Source
pub fn emit_service_handler_interface(
    svc: &ServiceDef,
    pkg: &str,
    opts: &JavaGenOptions,
) -> Result<JavaFile, JavaGenError>
Expand description

Emits the server-side handler interface (<Service>Service.java).

Users implement this interface and pass their implementation to the emit_replier_class output.

§Errors

Like emit_service_interface.