Skip to main content

ContextFactory

Trait ContextFactory 

Source
pub trait ContextFactory {
    // Required method
    fn new_context(self, persistent_ctx: PersistentContext) -> Context;
}
Expand description

Used to generate new Context.

Required Methods§

Source

fn new_context(self, persistent_ctx: PersistentContext) -> Context

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§