Struct leptos::SuspensePropsBuilder
source · pub struct SuspensePropsBuilder<F, E, TypedBuilderFields = ((), ())> { /* private fields */ }
Expand description
Builder for SuspenseProps
instances.
See SuspenseProps::builder()
for more info.
Implementations§
source§impl<F, E, __children> SuspensePropsBuilder<F, E, ((), __children)>where
F: Fn() -> E + 'static,
E: IntoView,
impl<F, E, __children> SuspensePropsBuilder<F, E, ((), __children)>where F: Fn() -> E + 'static, E: IntoView,
sourcepub fn fallback(
self,
fallback: F
) -> SuspensePropsBuilder<F, E, ((F,), __children)>
pub fn fallback( self, fallback: F ) -> SuspensePropsBuilder<F, E, ((F,), __children)>
fallback: [F
]
Returns a fallback UI that will be shown while async
Resources are still loading.
source§impl<F, E, __fallback> SuspensePropsBuilder<F, E, (__fallback, ())>where
F: Fn() -> E + 'static,
E: IntoView,
impl<F, E, __fallback> SuspensePropsBuilder<F, E, (__fallback, ())>where F: Fn() -> E + 'static, E: IntoView,
source§impl<F, E> SuspensePropsBuilder<F, E, ((F,), (Box<dyn Fn(Scope) -> Fragment>,))>where
F: Fn() -> E + 'static,
E: IntoView,
impl<F, E> SuspensePropsBuilder<F, E, ((F,), (Box<dyn Fn(Scope) -> Fragment>,))>where F: Fn() -> E + 'static, E: IntoView,
sourcepub fn build(self) -> SuspenseProps<F, E>
pub fn build(self) -> SuspenseProps<F, E>
Finalise the builder and create its SuspenseProps
instance
Trait Implementations§
Auto Trait Implementations§
impl<F, E, TypedBuilderFields> RefUnwindSafe for SuspensePropsBuilder<F, E, TypedBuilderFields>where E: RefUnwindSafe, F: RefUnwindSafe, TypedBuilderFields: RefUnwindSafe,
impl<F, E, TypedBuilderFields> Send for SuspensePropsBuilder<F, E, TypedBuilderFields>where E: Send, F: Send, TypedBuilderFields: Send,
impl<F, E, TypedBuilderFields> Sync for SuspensePropsBuilder<F, E, TypedBuilderFields>where E: Sync, F: Sync, TypedBuilderFields: Sync,
impl<F, E, TypedBuilderFields> Unpin for SuspensePropsBuilder<F, E, TypedBuilderFields>where E: Unpin, F: Unpin, TypedBuilderFields: Unpin,
impl<F, E, TypedBuilderFields> UnwindSafe for SuspensePropsBuilder<F, E, TypedBuilderFields>where E: UnwindSafe, F: UnwindSafe, TypedBuilderFields: UnwindSafe,
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