pub struct ServerMetaContext { /* private fields */ }
Expand description
Allows you to add <head>
content from components located in the <body>
of the application,
which can be accessed during server rendering via ServerMetaContextOutput
.
This should be provided as context during server rendering.
No content added after the first chunk of the stream has been sent will be included in the
initial <head>
. Data that needs to be included in the <head>
during SSR should be
synchronous or loaded as a blocking resource.
Implementations§
source§impl ServerMetaContext
impl ServerMetaContext
sourcepub fn new() -> (ServerMetaContext, ServerMetaContextOutput)
pub fn new() -> (ServerMetaContext, ServerMetaContextOutput)
Creates an empty ServerMetaContext
.
Trait Implementations§
source§impl Clone for ServerMetaContext
impl Clone for ServerMetaContext
source§fn clone(&self) -> ServerMetaContext
fn clone(&self) -> ServerMetaContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServerMetaContext
impl RefUnwindSafe for ServerMetaContext
impl Send for ServerMetaContext
impl Sync for ServerMetaContext
impl Unpin for ServerMetaContext
impl UnwindSafe for ServerMetaContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.