Struct leptos_dom::HydrationCtx
source · pub struct HydrationCtx;
Expand description
Control and utility methods for hydration.
Implementations§
source§impl HydrationCtx
impl HydrationCtx
sourcepub fn peek() -> HydrationKey
pub fn peek() -> HydrationKey
Get the next id
without incrementing it.
sourcepub fn id() -> HydrationKey
pub fn id() -> HydrationKey
Increments the current hydration id
and returns it
sourcepub fn next_component() -> HydrationKey
pub fn next_component() -> HydrationKey
Resets the hydration id
for the next component, and returns it
sourcepub fn continue_from(id: HydrationKey)
pub fn continue_from(id: HydrationKey)
Resumes hydration from the provided id
. Useful for
Suspense
and other fancy things.
Auto Trait Implementations§
impl RefUnwindSafe for HydrationCtx
impl Send for HydrationCtx
impl Sync for HydrationCtx
impl Unpin for HydrationCtx
impl UnwindSafe for HydrationCtx
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