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 moreimpl<Data: Eq + Buf> Eq for PayloadItem<Data>
impl<Data: Buf> StructuralPartialEq for PayloadItem<Data>
Auto Trait Implementations§
impl<Data> Freeze for PayloadItem<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for PayloadItem<Data>where
Data: RefUnwindSafe,
impl<Data> Send for PayloadItem<Data>where
Data: Send,
impl<Data> Sync for PayloadItem<Data>where
Data: Sync,
impl<Data> Unpin for PayloadItem<Data>where
Data: Unpin,
impl<Data> UnwindSafe for PayloadItem<Data>where
Data: UnwindSafe,
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