pub enum View {
Text(String),
Dynamic(Dynamic),
Element(Element),
Fragment(Fragment),
Component(ComponentMarker),
Island(Island),
Boundary(Boundary),
Slot(SlotView),
Raw(String),
Empty,
}Expand description
Top-level view returned from a component.
Variants§
Text(String)
Dynamic(Dynamic)
Reactive text/HTML node bound to a signal.
Element(Element)
Fragment(Fragment)
Component(ComponentMarker)
Island(Island)
A self-contained interactive island. Renders its own SSR HTML and declares the chunk that will be lazy-loaded on first interaction.
Boundary(Boundary)
Resumable component boundary — lazy handler chunk + viewport prefetch.
Slot(SlotView)
Content projection slot — resolved from parent slotted children.
Raw(String)
A rendered chunk of raw HTML — used for trusted output and for nested pre-rendered components that have already been flattened.
Empty
Implementations§
Source§impl View
impl View
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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