Enum dioxus_core::RenderReturn
source · pub enum RenderReturn {
Ready(VNode),
Aborted(VNode),
}
Expand description
The actual state of the component’s most recent computation
If the component returned early (e.g. return None
), this will be Aborted(None)
Variants§
Ready(VNode)
A currently-available element
Aborted(VNode)
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.
Methods from Deref<Target = VNode>§
sourcepub fn dynamic_root(&self, idx: usize) -> Option<&DynamicNode>
pub fn dynamic_root(&self, idx: usize) -> Option<&DynamicNode>
Load a dynamic root at the given index
Returns None
if the root is actually a static node (Element/Text)
sourcepub fn mounted_dynamic_node(
&self,
dynamic_node_idx: usize,
dom: &VirtualDom
) -> Option<ElementId>
pub fn mounted_dynamic_node( &self, dynamic_node_idx: usize, dom: &VirtualDom ) -> Option<ElementId>
Get the mounted id for a dynamic node index
sourcepub fn mounted_root(
&self,
root_idx: usize,
dom: &VirtualDom
) -> Option<ElementId>
pub fn mounted_root( &self, root_idx: usize, dom: &VirtualDom ) -> Option<ElementId>
Get the mounted id for a root node index
sourcepub fn mounted_dynamic_attribute(
&self,
dynamic_attribute_idx: usize,
dom: &VirtualDom
) -> Option<ElementId>
pub fn mounted_dynamic_attribute( &self, dynamic_attribute_idx: usize, dom: &VirtualDom ) -> Option<ElementId>
Get the mounted id for a dynamic attribute index
Trait Implementations§
source§impl Clone for RenderReturn
impl Clone for RenderReturn
source§impl Default for RenderReturn
impl Default for RenderReturn
Auto Trait Implementations§
impl !Freeze for RenderReturn
impl !RefUnwindSafe for RenderReturn
impl !Send for RenderReturn
impl !Sync for RenderReturn
impl Unpin for RenderReturn
impl !UnwindSafe for RenderReturn
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.