pub struct LocalServerRenderer<COMP>where
COMP: BaseComponent,{ /* private fields */ }
Available on crate feature
ssr
only.Expand description
Implementations§
source§impl<COMP> LocalServerRenderer<COMP>
impl<COMP> LocalServerRenderer<COMP>
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
Trait Implementations§
source§impl<COMP> Debug for LocalServerRenderer<COMP>
impl<COMP> Debug for LocalServerRenderer<COMP>
source§impl<COMP> Default for LocalServerRenderer<COMP>
impl<COMP> Default for LocalServerRenderer<COMP>
Auto Trait Implementations§
impl<COMP> Freeze for LocalServerRenderer<COMP>
impl<COMP> RefUnwindSafe for LocalServerRenderer<COMP>
impl<COMP> Send for LocalServerRenderer<COMP>
impl<COMP> Sync for LocalServerRenderer<COMP>
impl<COMP> Unpin for LocalServerRenderer<COMP>
impl<COMP> UnwindSafe for LocalServerRenderer<COMP>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.