pub struct ServerRenderer<COMP, REQ = (), CTX = (), L = PhantomLink>where
COMP: BaseComponent,{ /* private fields */ }
Expand description
The Stellation Backend Renderer.
This type wraps the Yew Server Renderer and provides additional features.
§Note
Stellation provides BrowserRouter
and
BounceRoot
to all applications.
Bounce Helmet is also bridged automatically.
You do not need to add them manually.
Implementations§
Source§impl<COMP, REQ, CTX> ServerRenderer<COMP, REQ, CTX>where
COMP: BaseComponent<Properties = ServerAppProps<CTX, REQ>>,
impl<COMP, REQ, CTX> ServerRenderer<COMP, REQ, CTX>where
COMP: BaseComponent<Properties = ServerAppProps<CTX, REQ>>,
Sourcepub fn new(request: REQ) -> ServerRenderer<COMP, REQ, CTX>
pub fn new(request: REQ) -> ServerRenderer<COMP, REQ, CTX>
Creates a Renderer with specified request.
Source§impl<COMP, REQ, CTX, L> ServerRenderer<COMP, REQ, CTX, L>where
COMP: BaseComponent<Properties = ServerAppProps<CTX, REQ>>,
impl<COMP, REQ, CTX, L> ServerRenderer<COMP, REQ, CTX, L>where
COMP: BaseComponent<Properties = ServerAppProps<CTX, REQ>>,
Sourcepub fn bridge<T>(self, bridge: Bridge<T>) -> ServerRenderer<COMP, REQ, CTX, T>
pub fn bridge<T>(self, bridge: Bridge<T>) -> ServerRenderer<COMP, REQ, CTX, T>
Connects a bridge to the application.
Trait Implementations§
Auto Trait Implementations§
impl<COMP, REQ, CTX, L> Freeze for ServerRenderer<COMP, REQ, CTX, L>
impl<COMP, REQ, CTX, L> RefUnwindSafe for ServerRenderer<COMP, REQ, CTX, L>
impl<COMP, REQ, CTX, L> Send for ServerRenderer<COMP, REQ, CTX, L>
impl<COMP, REQ, CTX, L> Sync for ServerRenderer<COMP, REQ, CTX, L>
impl<COMP, REQ, CTX, L> Unpin for ServerRenderer<COMP, REQ, CTX, L>
impl<COMP, REQ, CTX, L> UnwindSafe for ServerRenderer<COMP, REQ, CTX, L>
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> 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.