Struct yew::LocalServerRenderer
source · pub struct LocalServerRenderer<COMP>where
COMP: BaseComponent,{ /* private fields */ }
Available on crate feature
ssr
only.Expand description
Implementations§
source§impl<COMP> LocalServerRenderer<COMP>where
COMP: BaseComponent,
COMP::Properties: Default,
impl<COMP> LocalServerRenderer<COMP>where
COMP: BaseComponent,
COMP::Properties: Default,
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a LocalServerRenderer with default properties.
source§impl<COMP> LocalServerRenderer<COMP>where
COMP: BaseComponent,
impl<COMP> LocalServerRenderer<COMP>where
COMP: BaseComponent,
sourcepub fn with_props(props: COMP::Properties) -> Self
pub fn with_props(props: COMP::Properties) -> Self
Creates a LocalServerRenderer with custom properties.
sourcepub fn hydratable(self, val: bool) -> Self
pub fn hydratable(self, val: bool) -> Self
Sets whether an the rendered result is hydratable.
Defaults to true
.
When this is sets to true
, the rendered artifact will include additional information
to assist with the hydration process.
sourcepub async fn render_to_string(self, w: &mut String)
pub async fn render_to_string(self, w: &mut String)
Renders Yew Application to a String.
sourcepub fn render_stream(self) -> impl Stream<Item = String>
pub fn render_stream(self) -> impl Stream<Item = String>
Renders Yew Application into a string Stream