pub struct Cons<H, T>(/* private fields */);Expand description
A plugin followed by the rest of the list.
Trait Implementations§
Source§impl<P: Plugin, T: PluginSet> Has<P, Here> for Cons<P, T>
impl<P: Plugin, T: PluginSet> Has<P, Here> for Cons<P, T>
fn get(&self) -> &Arc<P> ⓘ
fn user_ext(ext: &Self::UserExt) -> &P::UserFields
fn session_ext(ext: &Self::SessionExt) -> &P::SessionFields
Source§impl<P: Plugin, H: Plugin, T: Has<P, I>, I> Has<P, There<I>> for Cons<H, T>
impl<P: Plugin, H: Plugin, T: Has<P, I>, I> Has<P, There<I>> for Cons<H, T>
fn get(&self) -> &Arc<P> ⓘ
fn user_ext(ext: &Self::UserExt) -> &P::UserFields
fn session_ext(ext: &Self::SessionExt) -> &P::SessionFields
Source§impl<H: Plugin, T: PluginSet> PluginSet for Cons<H, T>
impl<H: Plugin, T: PluginSet> PluginSet for Cons<H, T>
Source§type UserExt = (<H as Plugin>::UserFields, <T as PluginSet>::UserExt)
type UserExt = (<H as Plugin>::UserFields, <T as PluginSet>::UserExt)
Nested tuple of each plugin’s
UserFields, parallel to the list.Source§type SessionExt = (<H as Plugin>::SessionFields, <T as PluginSet>::SessionExt)
type SessionExt = (<H as Plugin>::SessionFields, <T as PluginSet>::SessionExt)
Nested tuple of each plugin’s
SessionFields.Auto Trait Implementations§
impl<H, T> Forget for Cons<H, T>
impl<H, T> Freeze for Cons<H, T>
impl<H, T> Move for Cons<H, T>
impl<H, T> RefUnwindSafe for Cons<H, T>
impl<H, T> Send for Cons<H, T>
impl<H, T> Sync for Cons<H, T>
impl<H, T> Unpin for Cons<H, T>
impl<H, T> UnsafeUnpin for Cons<H, T>
impl<H, T> UnwindSafe for Cons<H, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more