pub struct StreamChunk<E> {
pub event: Option<E>,
pub bytes: Bytes,
pub finished: bool,
}Expand description
A client event and its already bounded native transport encoding. The final
framing chunk ([DONE] or ]) has event = None and finished = true.
Fields§
§event: Option<E>§bytes: Bytes§finished: boolTrait Implementations§
Auto Trait Implementations§
impl<E> !Freeze for StreamChunk<E>
impl<E> RefUnwindSafe for StreamChunk<E>where
Option<E>: RefUnwindSafe,
impl<E> Send for StreamChunk<E>
impl<E> Sync for StreamChunk<E>
impl<E> Unpin for StreamChunk<E>
impl<E> UnsafeUnpin for StreamChunk<E>where
Option<E>: UnsafeUnpin,
impl<E> UnwindSafe for StreamChunk<E>where
Option<E>: 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