Skip to main content

PayloadFactory

Trait PayloadFactory 

Source
pub trait PayloadFactory:
    Send
    + Sync
    + 'static {
    // Required method
    fn create(&self, ctx: &Context<'_>) -> PayloadObjectBox;
}

Required Methods§

Source

fn create(&self, ctx: &Context<'_>) -> PayloadObjectBox

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<_ErasedPtr> PayloadFactory for PayloadFactory_TO<_ErasedPtr>
where Self: Send + Sync + 'static, _ErasedPtr: AsPtr<PtrTarget = ()>,