Skip to main content

sark_core/http/response/
never_stream.rs

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