pub enum BodyFrame<D> {
Data {
data: D,
end: bool,
},
Headers {
fields: Fields,
end: bool,
},
End,
}Expand description
One owned body event. Initial message fields live in the message head;
Headers carries trailing fields, after which no more data is permitted.
end completes this body direction after delivering the payload. End
represents completion without a payload, including completion learned after
the last data or fields were delivered. It never requires an empty D.
An empty data payload with end: false is ordinary data, not completion.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for BodyFrame<D>where
D: Freeze,
impl<D> RefUnwindSafe for BodyFrame<D>where
D: RefUnwindSafe,
impl<D> Send for BodyFrame<D>where
D: Send,
impl<D> Sync for BodyFrame<D>where
D: Sync,
impl<D> Unpin for BodyFrame<D>where
D: Unpin,
impl<D> UnsafeUnpin for BodyFrame<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for BodyFrame<D>where
D: 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