pub struct Once<B>(/* private fields */);Expand description
Full body type that can only be polled once with Stream::poll_next.
Implementations§
Trait Implementations§
Source§impl<B> From<Once<B>> for ResponseBody
impl<B> From<Once<B>> for ResponseBody
Source§impl<B> Stream for Once<B>
impl<B> Stream for Once<B>
Source§type Item = Result<B, Infallible>
type Item = Result<B, Infallible>
Values yielded by the stream.
Auto Trait Implementations§
impl<B> Freeze for Once<B>where
B: Freeze,
impl<B> RefUnwindSafe for Once<B>where
B: RefUnwindSafe,
impl<B> Send for Once<B>where
B: Send,
impl<B> Sync for Once<B>where
B: Sync,
impl<B> Unpin for Once<B>where
B: Unpin,
impl<B> UnwindSafe for Once<B>where
B: 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