pub struct Suspense {
pub fallback: Node,
pub content: Pin<Box<dyn Future<Output = Node> + Send>>,
}Expand description
An async boundary: fallback is rendered immediately, content replaces
it once resolved (in place when not streaming, out-of-order when streaming).
Fields§
§fallback: Node§content: Pin<Box<dyn Future<Output = Node> + Send>>Auto Trait Implementations§
impl !RefUnwindSafe for Suspense
impl !Sync for Suspense
impl !UnwindSafe for Suspense
impl Forget for Suspense
impl Freeze for Suspense
impl Move for Suspense
impl Send for Suspense
impl Unpin for Suspense
impl UnsafeUnpin for Suspense
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