ReplyPayload

Trait ReplyPayload 

Source
pub trait ReplyPayload<'de>:
    Debug
    + Serialize
    + Deserialize<'de> {
    // Provided method
    fn code(&self) -> i32 { ... }
}
Expand description

Trait for a reply type to be handled by the reply() function.

This is mostly internal, but may be used if you want to output your own reply types for some reason.

Provided Methods§

Source

fn code(&self) -> i32

The exit code to be set when replying with this type.

Defaults to 0 (success).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§