pub struct StreamChunk {
pub data: *mut u8,
pub len: usize,
}Expand description
A single chunk from a streaming response.
data points to len bytes of valid memory.
Free with eggfetch_stream_chunk_free.
Fields§
§data: *mut u8Pointer to the chunk data. null if the chunk is empty.
len: usizeLength of the chunk data in bytes.
Auto Trait Implementations§
impl !Send for StreamChunk
impl !Sync for StreamChunk
impl Freeze 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