pub struct SuspenseProps<F, E, G>{
pub fallback: F,
pub children: Box<dyn Fn() -> Vec<G>>,
}Expand description
Fields§
§fallback: FWill be displayed while resources are pending.
children: Box<dyn Fn() -> Vec<G>>Will be displayed once all resources have resolved.
Implementations§
Source§impl<F, E, G> SuspenseProps<F, E, G>
impl<F, E, G> SuspenseProps<F, E, G>
Auto Trait Implementations§
impl<F, E, G> Freeze for SuspenseProps<F, E, G>where
F: Freeze,
impl<F, E, G> !RefUnwindSafe for SuspenseProps<F, E, G>
impl<F, E, G> !Send for SuspenseProps<F, E, G>
impl<F, E, G> !Sync for SuspenseProps<F, E, G>
impl<F, E, G> Unpin for SuspenseProps<F, E, G>where
F: Unpin,
impl<F, E, G> !UnwindSafe for SuspenseProps<F, E, G>
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