pub struct TransitionProps<F, E, G>where
    F: IntoChild + Clone,
    E: IntoChild,
    G: Fn() -> E,
{ pub fallback: F, pub set_pending: Option<SignalSetter<bool>>, pub children: Box<dyn Fn() -> Vec<G>>, }
Expand description

Props for the Suspense component, which shows a fallback while Resources are being read.

Fields§

§fallback: F

Will be displayed while resources are pending.

§set_pending: Option<SignalSetter<bool>>

A function that will be called when the component transitions into or out of the pending state, with its argument indicating whether it is pending (true) or not pending (false).

§children: Box<dyn Fn() -> Vec<G>>

Will be displayed once all resources have resolved.

Implementations§

Create a builder for building TransitionProps. On the builder, call .fallback(...), .set_pending(...)(optional), .children(...) to set the values of the fields. Finally, call .build() to create the instance of TransitionProps.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.