Skip to main content

Has

Trait Has 

Source
pub trait Has<P, I>: PluginSet
where P: Plugin,
{ // Required methods fn get(&self) -> &Arc<P> ⓘ; fn user_ext(ext: &Self::UserExt) -> &<P as Plugin>::UserFields; fn session_ext(ext: &Self::SessionExt) -> &<P as Plugin>::SessionFields; }

Required Methods§

Source

fn get(&self) -> &Arc<P> ⓘ

Source

fn user_ext(ext: &Self::UserExt) -> &<P as Plugin>::UserFields

Source

fn session_ext(ext: &Self::SessionExt) -> &<P as Plugin>::SessionFields

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P, H, T, I> Has<P, There<I>> for Cons<H, T>
where P: Plugin, H: Plugin, T: Has<P, I>,

Source§

impl<P, T> Has<P, Here> for Cons<P, T>
where P: Plugin, T: PluginSet,