[−][src]Struct seed::app::builder::init::Init
Deprecated since 0.5.0:
Part of old Init API. Use a combination of BeforeMount
and AfterMount
instead.
Used as a flexible wrapper for the init function.
Fields
model: Mdl
Deprecated since 0.5.0:
Part of old Init API. Use AfterMount
instead.
Initial model to be used when the app begins.
url_handling: UrlHandling
Deprecated since 0.5.0:
Part of old Init API. Use AfterMount
instead.
How to handle initial url routing. Defaults to UrlHandling::PassToRoutes
in the
constructors.
mount_type: MountType
Deprecated since 0.5.0:
Part of old Init API. Use BeforeMount
instead.
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]
Deprecated since 0.5.0:
Part of old Init API. Use AfterMount
instead.
pub const fn new_with_url_handling(
model: Mdl,
url_handling: UrlHandling
) -> Self
[src]
model: Mdl,
url_handling: UrlHandling
) -> Self
Deprecated since 0.5.0:
Part of old Init API. Use AfterMount
instead.
Trait Implementations
impl<Mdl: Clone> Clone for Init<Mdl>
[src]
impl<Mdl: Copy> Copy for Init<Mdl>
[src]
impl<Mdl: Debug> Debug for Init<Mdl>
[src]
impl<Mdl: Default> Default for Init<Mdl>
[src]
impl<Mdl: Eq> Eq for Init<Mdl>
[src]
impl<Mdl: Hash> Hash for Init<Mdl>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Mdl: PartialEq> PartialEq<Init<Mdl>> for Init<Mdl>
[src]
impl<Mdl> StructuralEq for Init<Mdl>
[src]
impl<Mdl> StructuralPartialEq for Init<Mdl>
[src]
Auto Trait Implementations
impl<Mdl> RefUnwindSafe for Init<Mdl> where
Mdl: RefUnwindSafe,
Mdl: RefUnwindSafe,
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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,