Enum dioxus_core::RenderReturn
source · pub enum RenderReturn<'a> {
Ready(VNode<'a>),
Aborted(VPlaceholder),
}
Expand description
The actual state of the component’s most recent computation
Because Dioxus accepts components in the form of async fn(Scope) -> Result<VNode>
, we need to support both
sync and async versions.
Dioxus will do its best to immediately resolve any async components into a regular Element, but as an implementor you might need to handle the case where there’s no node immediately ready.
Variants§
Ready(VNode<'a>)
A currently-available element
Aborted(VPlaceholder)
The component aborted rendering early. It might’ve thrown an error.
In its place we’ve produced a placeholder to locate its spot in the dom when it recovers.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RenderReturn<'a>
impl<'a> !Send for RenderReturn<'a>
impl<'a> !Sync for RenderReturn<'a>
impl<'a> Unpin for RenderReturn<'a>
impl<'a> !UnwindSafe for RenderReturn<'a>
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