Skip to main content

HasPlugin

Trait HasPlugin 

Source
pub trait HasPlugin<Pl, I>: AuthInstance {
    // Required method
    fn plugin_arc(&self) -> &Arc<Pl> ⓘ;
}
Expand description

For plugin extension traits: methods bounded by Self: HasPlugin<MyPlugin, I> only compile on an Auth that registered the plugin.

Required Methods§

Source

fn plugin_arc(&self) -> &Arc<Pl> ⓘ

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<D: Adapter, U: Fields, P: Has<Pl, I>, Pl: Plugin, I> HasPlugin<Pl, I> for Auth<D, U, P>