Struct leptos::FragmentData
source · pub struct FragmentData {
pub out_of_order: Pin<Box<dyn Future<Output = String>>>,
pub in_order: Pin<Box<dyn Future<Output = VecDeque<StreamChunk>>>>,
pub should_block: bool,
pub is_ready: Option<Pin<Box<dyn Future<Output = ()>>>>,
pub local_only: bool,
}
Expand description
Represents its pending <Suspense/>
fragment.
Fields§
§out_of_order: Pin<Box<dyn Future<Output = String>>>
Future that represents how it should be render for an out-of-order stream.
in_order: Pin<Box<dyn Future<Output = VecDeque<StreamChunk>>>>
Future that represents how it should be render for an in-order stream.
should_block: bool
Whether the stream should wait for this fragment before sending any data.
is_ready: Option<Pin<Box<dyn Future<Output = ()>>>>
Future that will resolve when the fragment is ready.
local_only: bool
Whether the fragment contains only local resources.
Auto Trait Implementations§
impl Freeze for FragmentData
impl !RefUnwindSafe for FragmentData
impl !Send for FragmentData
impl !Sync for FragmentData
impl Unpin for FragmentData
impl !UnwindSafe for FragmentData
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> 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