Enum Fallthrough

Used as optional return type for functions with @endpoint` UDA attached. It is used to override the default behavior of serverino: if an endpoint returns Fallthrough.Yes, the next endpoint is called even if the current one has written to the output.

enum Fallthrough : bool { ... }
// Doing a request to the server will return "Hello world!"

// Will continue with the next function
@endpoint @priority(3) auto test_1(Request r, Output o) { output ~= "Hello"; return Fallthrough.Yes; }

// This blocks the chain (default behavior when output is written)
@endpoint @priority(2) auto test_2(Request r, Output o) { output ~= " world!"; }

// Never executed (blocked by test_2)
@endpoint @priority(1) auto test_3(Request r, Output o) { output ~= "Not executed!"; }

Enum members

NameDescription
No Stop the chain
Yes Continue with the next function