pub trait CuHandlePayloadInit:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn boxed_init() -> Box<Self>;
// Provided method
fn decode_boxed<D>(decoder: &mut D) -> Result<Box<Self>, DecodeError>
where Self: Decode<()>,
D: Decoder<Context = ()> { ... }
}Required Methods§
fn boxed_init() -> Box<Self>
Provided Methods§
fn decode_boxed<D>(decoder: &mut D) -> Result<Box<Self>, DecodeError>
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.