pub struct Empty<D>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<D> Body for Empty<D>
impl<D> Body for Empty<D>
Source§type Data = D
type Data = D
The payload data type yielded by
Frame::Data variants.Source§type Error = Infallible
type Error = Infallible
The error type that can occur while producing frames.
Source§fn poll_frame(
self: Pin<&mut Empty<D>>,
_: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<Empty<D> as Body>::Data>, <Empty<D> as Body>::Error>>>
fn poll_frame( self: Pin<&mut Empty<D>>, _: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<Empty<D> as Body>::Data>, <Empty<D> as Body>::Error>>>
Attempt to pull the next frame from the body. Read more
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Indicates whether the body has been fully consumed. Read more
impl<D> Copy for Empty<D>where
D: Copy,
Auto Trait Implementations§
impl<D> Freeze for Empty<D>
impl<D> RefUnwindSafe for Empty<D>
impl<D> Send for Empty<D>
impl<D> Sync for Empty<D>
impl<D> Unpin for Empty<D>
impl<D> UnsafeUnpin for Empty<D>
impl<D> UnwindSafe for Empty<D>
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