[−][src]Struct seed::prelude::Init
Used as a flexible wrapper for the init function.
Fields
model: Mdl
Initial model to be used when the app begins.
url_handling: UrlHandling
How to handle initial url routing. Defaults to UrlHandling::PassToRoutes
in the
constructors.
mount_type: MountType
How to handle elements already present in the mount. Defaults to MountType::Append
in the constructors.
Methods
impl<Mdl> Init<Mdl>
[src]
pub const fn new(model: Mdl) -> Self
[src]
pub const fn new_with_url_handling(
model: Mdl,
url_handling: UrlHandling
) -> Self
[src]
model: Mdl,
url_handling: UrlHandling
) -> Self
Trait Implementations
Auto Trait Implementations
impl<Mdl> Send for Init<Mdl> where
Mdl: Send,
Mdl: Send,
impl<Mdl> Sync for Init<Mdl> where
Mdl: Sync,
Mdl: Sync,
impl<Mdl> Unpin for Init<Mdl> where
Mdl: Unpin,
Mdl: Unpin,
impl<Mdl> UnwindSafe for Init<Mdl> where
Mdl: UnwindSafe,
Mdl: UnwindSafe,
impl<Mdl> RefUnwindSafe for Init<Mdl> where
Mdl: RefUnwindSafe,
Mdl: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,