Skip to main content

CuHandlePayloadInit

Trait CuHandlePayloadInit 

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

Source

fn boxed_init() -> Box<Self>

Provided Methods§

Source

fn decode_boxed<D>(decoder: &mut D) -> Result<Box<Self>, DecodeError>
where Self: Decode<()>, D: Decoder<Context = ()>,

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§