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.