Enum micro_http::protocol::PayloadItem
source · pub enum PayloadItem<Data: Buf = Bytes> {
Chunk(Data),
Eof,
}Expand description
payload item produced from payload decoder
Variants§
Implementations§
source§impl<D: Buf> PayloadItem<D>
impl<D: Buf> PayloadItem<D>
source§impl PayloadItem
impl PayloadItem
Trait Implementations§
source§impl<Data: Clone + Buf> Clone for PayloadItem<Data>
impl<Data: Clone + Buf> Clone for PayloadItem<Data>
source§fn clone(&self) -> PayloadItem<Data>
fn clone(&self) -> PayloadItem<Data>
Returns a copy 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<Data: PartialEq + Buf> PartialEq<PayloadItem<Data>> for PayloadItem<Data>
impl<Data: PartialEq + Buf> PartialEq<PayloadItem<Data>> for PayloadItem<Data>
source§fn eq(&self, other: &PayloadItem<Data>) -> bool
fn eq(&self, other: &PayloadItem<Data>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.