Skip to main content

Module handler

Module handler 

Source
Expand description

Handler traits and registration types.

Structs§

RegisteredRune
A registered rune with its config and handler.

Enums§

HandlerKind
An erased handler, either unary or stream, with or without files.

Type Aliases§

BoxFuture
Boxed future returned by handlers.
RuneHandlerFn
A unary handler function: (ctx, input) -> Result<Bytes>.
RuneHandlerWithFilesFn
A unary handler that also accepts files: (ctx, input, files) -> Result<Bytes>.
StreamRuneHandlerFn
A stream handler function: (ctx, input, stream) -> Result<()>.
StreamRuneHandlerWithFilesFn
A stream handler that also accepts files: (ctx, input, files, stream) -> Result<()>.