pub enum StreamChunk {
Bytes(Rc<[u8]>),
Text(Rc<str>),
}Expand description
a chunk of a stream
Variants§
Auto Trait Implementations§
impl !Send for StreamChunk
impl !Sync for StreamChunk
impl Forget for StreamChunk
impl Freeze for StreamChunk
impl Move for StreamChunk
impl RefUnwindSafe for StreamChunk
impl Unpin for StreamChunk
impl UnsafeUnpin 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