Skip to main content

render_skeleton_dispatch

Function render_skeleton_dispatch 

Source
pub fn render_skeleton_dispatch(
    class_name: &str,
    ops: &[SkeletonOp],
    lang: TargetLanguage,
) -> String
Expand description

Renders an operation-name switch for the server skeleton.

This is a simple switch operation_name construct that the codegen emits in C++ / C# / Java. The actual method body (marshalling) is language-specific and lives in the crates/idl-* crates; here we only provide the switch body as a helper.