pub struct StreamData {
pub stream_id: u32,
pub data: Vec<u8>,
pub fin: bool,
}Expand description
Bytes delivered from one stream by a StreamMuxReceiver::poll.
Fields§
§stream_id: u32The stream the bytes belong to.
data: Vec<u8>Contiguous bytes delivered in order (may be empty when only fin lands).
fin: boolWhether this delivery completes the stream.
Trait Implementations§
Source§impl Clone for StreamData
impl Clone for StreamData
Source§fn clone(&self) -> StreamData
fn clone(&self) -> StreamData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamData
impl RefUnwindSafe for StreamData
impl Send for StreamData
impl Sync for StreamData
impl Unpin for StreamData
impl UnsafeUnpin for StreamData
impl UnwindSafe for StreamData
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