[][src]Trait seed::app::builder::InitAPIData

pub trait InitAPIData {
    type IntoAfterMount;
    type IntoInit;
    type MountPoint;
    fn before_mount(
        self,
        before_mount_handler: Box<dyn FnOnce(Url) -> BeforeMount>
    ) -> BeforeAfterInitAPI<Self::IntoAfterMount>;
fn after_mount<Ms: 'static, Mdl, ElC: View<Ms>, GMs, NewIAM: IntoAfterMount<Ms, Mdl, ElC, GMs>>(
        self,
        into_after_mount: NewIAM
    ) -> BeforeAfterInitAPI<NewIAM>;
fn init<Ms: 'static, Mdl, ElC: View<Ms>, GMs, NewII: IntoInit<Ms, Mdl, ElC, GMs>>(
        self,
        into_init: NewII
    ) -> MountPointInitInitAPI<Self::MountPoint, NewII>;
fn mount<NewMP: MountPoint>(
        self,
        mount_point: NewMP
    ) -> MountPointInitInitAPI<NewMP, Self::IntoInit>; }

Associated Types

type IntoAfterMount

type IntoInit

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

type MountPoint

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

Loading content...

Required methods

fn before_mount(
    self,
    before_mount_handler: Box<dyn FnOnce(Url) -> BeforeMount>
) -> BeforeAfterInitAPI<Self::IntoAfterMount>

fn after_mount<Ms: 'static, Mdl, ElC: View<Ms>, GMs, NewIAM: IntoAfterMount<Ms, Mdl, ElC, GMs>>(
    self,
    into_after_mount: NewIAM
) -> BeforeAfterInitAPI<NewIAM>

fn init<Ms: 'static, Mdl, ElC: View<Ms>, GMs, NewII: IntoInit<Ms, Mdl, ElC, GMs>>(
    self,
    into_init: NewII
) -> MountPointInitInitAPI<Self::MountPoint, NewII>

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use before_mount and after_mount instead.

fn mount<NewMP: MountPoint>(
    self,
    mount_point: NewMP
) -> MountPointInitInitAPI<NewMP, Self::IntoInit>

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use before_mount and after_mount instead.

Loading content...

Implementors

impl InitAPIData for UndefinedInitAPI[src]

type IntoAfterMount = UndefinedAfterMount

type IntoInit = UndefinedIntoInit

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

type MountPoint = UndefinedMountPoint

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

impl<IAM> InitAPIData for BeforeAfterInitAPI<IAM>[src]

type IntoAfterMount = IAM

type IntoInit = UndefinedIntoInit

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

type MountPoint = UndefinedMountPoint

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

impl<MP, II> InitAPIData for MountPointInitInitAPI<MP, II>[src]

type IntoAfterMount = UndefinedAfterMount

type IntoInit = II

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

type MountPoint = MP

Deprecated since 0.5.0:

Used for compatibility with old Init API. Use IntoBeforeMount and IntoAfterMount instead.

Loading content...