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§
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.