Transformer

interface Transformer<T>

Adapts a user-facing type to the wire-level CallData representation. Only non-error variants flow through transformers — CallData.Error frames are intercepted by RpcMethod.callChannel and converted to a thrown Throwable via RpcMethod.decodeError before any transformer sees them.

Inheritors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun <S> transform(input: T, channel: SerializedService<S>): CallData<S>
Link copied to clipboard
abstract suspend fun <S> untransform(data: CallData<S>, channel: SerializedService<S>): T