pub struct Stream {
pub id: String,
pub chunk_type: String,
pub content: String,
pub mode: String,
pub selector: Option<String>,
pub island: Option<String>,
}Expand description
One chunk a streamed component sent before its final response.
Fields§
§id: StringThe component that streamed the chunk.
chunk_type: StringThe chunk’s kind, such as replace or append.
content: StringThe chunk’s content.
mode: StringWhere the chunk goes: a CSS selector, or a target inside the component.
selector: Option<String>The selector the chunk replaces, or None for the component’s own markup.
island: Option<String>The island the chunk belongs to, or None for the component.
Trait Implementations§
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Forget for Stream
impl Freeze for Stream
impl Move for Stream
impl RefUnwindSafe for Stream
impl Send for Streamwhere
RawVecInner: Send,
impl Sync for Streamwhere
RawVecInner: Sync,
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Streamwhere
RawVecInner: UnwindSafe,
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