Trait AppPathwayExt

Source
pub trait AppPathwayExt {
    // Required methods
    fn insert_pathway<P>(&mut self, backend: P::Backend) -> &mut Self
       where P: Pathway<Backend: for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>;
    fn init_pathway<P>(&mut self) -> &mut Self
       where P: Pathway<Backend: FromWorld + for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>;
}
Expand description

App extension trait for Pathway-related methods

Required Methods§

Source

fn insert_pathway<P>(&mut self, backend: P::Backend) -> &mut Self
where P: Pathway<Backend: for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>,

Initializes the Pathway and its associated Backend

Source

fn init_pathway<P>(&mut self) -> &mut Self
where P: Pathway<Backend: FromWorld + for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>,

Initializes the Pathway and its associated Backend using default values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AppPathwayExt for App

Source§

fn insert_pathway<P>(&mut self, backend: P::Backend) -> &mut Self
where P: Pathway<Backend: for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>,

Source§

fn init_pathway<P>(&mut self) -> &mut Self
where P: Pathway<Backend: FromWorld + for<'a> Backend<P::Key<'a>> + Send + Sync + 'static>,

Implementors§