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: boolWhether 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: boolWhether 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