Skip to main content

sark_core/http/response/
never_stream.rs

1use std::pin::Pin;
2use std::task::Poll;
3
4use dope_fiber::abi::Fiber;
5use dope_fiber::raw::task::Context;
6use o3::buffer::Shared;
7
8pub enum NeverStream {}
9
10impl<'d> Fiber<'d> for NeverStream {
11    type Output = Option<Shared>;
12
13    fn poll(self: Pin<&mut Self>, _context: Pin<&mut Context<'_, 'd>>) -> Poll<Self::Output> {
14        match *self.get_mut() {}
15    }
16}