pub struct TransitionProps<F, E, G>{
pub fallback: F,
pub set_pending: Option<SignalSetter<bool>>,
pub children: Box<dyn Fn() -> Vec<G>>,
}
Expand description
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§
Source§impl<F, E, G> TransitionProps<F, E, G>
impl<F, E, G> TransitionProps<F, E, G>
Auto Trait Implementations§
impl<F, E, G> Freeze for TransitionProps<F, E, G>where
F: Freeze,
impl<F, E, G> !RefUnwindSafe for TransitionProps<F, E, G>
impl<F, E, G> !Send for TransitionProps<F, E, G>
impl<F, E, G> !Sync for TransitionProps<F, E, G>
impl<F, E, G> Unpin for TransitionProps<F, E, G>where
F: Unpin,
impl<F, E, G> !UnwindSafe for TransitionProps<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