Struct leptos_meta::ServerMetaContext
source · pub struct ServerMetaContext { /* private fields */ }
Expand description
Contains the state of meta tags for server rendering.
This should be provided as context during server rendering.
Implementations§
source§impl ServerMetaContext
impl ServerMetaContext
sourcepub async fn inject_meta_context(
self,
stream: impl Stream<Item = String> + Send + Unpin,
) -> impl Stream<Item = String> + Send
pub async fn inject_meta_context( self, stream: impl Stream<Item = String> + Send + Unpin, ) -> impl Stream<Item = String> + Send
Consumes the metadata, injecting it into the the first chunk of an HTML stream in the appropriate place.
This means that only meta tags rendered during the first chunk of the stream will be included.
source§impl ServerMetaContext
impl ServerMetaContext
sourcepub fn new() -> Self
pub fn new() -> Self
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 moresource§impl Debug for ServerMetaContext
impl Debug for ServerMetaContext
source§impl Default for ServerMetaContext
impl Default for ServerMetaContext
source§fn default() -> ServerMetaContext
fn default() -> ServerMetaContext
Returns the “default value” for a type. Read more
Auto 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> 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 more