pub struct HttpStream<E> { /* private fields */ }Expand description
An owned HTTP stream. Dropping it closes the connection and releases its slot.
Implementations§
Source§impl<E> HttpStream<E>
impl<E> HttpStream<E>
Sourcepub async fn next_event(&mut self) -> Option<Result<E>>
pub async fn next_event(&mut self) -> Option<Result<E>>
Read the next event. Any error ends this generation and creates a continuity gap.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for HttpStream<E>
impl<E> !UnwindSafe for HttpStream<E>
impl<E> Freeze for HttpStream<E>
impl<E> Send for HttpStream<E>
impl<E> Sync for HttpStream<E>
impl<E> Unpin for HttpStream<E>
impl<E> UnsafeUnpin for HttpStream<E>
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