Enum leptos_reactive::suspense::StreamChunk
source · pub enum StreamChunk {
Sync(Cow<'static, str>),
Async(Pin<Box<dyn Future<Output = Vec<StreamChunk>>>>),
}
Expand description
Represents a chunk in a stream of HTML.
Variants§
Sync(Cow<'static, str>)
A chunk of synchronous HTML.
Async(Pin<Box<dyn Future<Output = Vec<StreamChunk>>>>)
A future that resolves to be a list of additional chunks.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamChunk
impl !Send for StreamChunk
impl !Sync for StreamChunk
impl Unpin for StreamChunk
impl !UnwindSafe for StreamChunk
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