pub enum StreamDataChunk {
Chunk(usize),
Last(usize),
Unavailable,
}Expand description
The enum represents the successful completion of the Stream::get_data_chunk method.
Variants§
Chunk(usize)
A data chunk of the given size, after which more chunks can follow.
Last(usize)
The chunk was the last one that the stream will ever write.
No data currently available, but the stream isn’t closed yet
Trait Implementations§
Source§impl Clone for StreamDataChunk
impl Clone for StreamDataChunk
Source§fn clone(&self) -> StreamDataChunk
fn clone(&self) -> StreamDataChunk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamDataChunk
impl Debug for StreamDataChunk
Source§impl PartialEq for StreamDataChunk
impl PartialEq for StreamDataChunk
impl Copy for StreamDataChunk
impl StructuralPartialEq for StreamDataChunk
Auto Trait Implementations§
impl Freeze for StreamDataChunk
impl RefUnwindSafe for StreamDataChunk
impl Send for StreamDataChunk
impl Sync for StreamDataChunk
impl Unpin for StreamDataChunk
impl UnwindSafe for StreamDataChunk
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