mirror of
https://github.com/Noratrieb/icefun.git
synced 2026-01-14 12:55:02 +01:00
loop
This commit is contained in:
parent
bb02adf04e
commit
c71413f2f7
3 changed files with 5 additions and 27 deletions
|
|
@ -5,10 +5,7 @@
|
|||
//! - The [`Accept`](Accept) trait used to asynchronously accept incoming
|
||||
//! connections.
|
||||
//! - Utilities like `poll_fn` to ease creating a custom `Accept`.
|
||||
use crate::common::{
|
||||
task::{self, Poll},
|
||||
Pin,
|
||||
};
|
||||
|
||||
#[cfg(feature = "stream")]
|
||||
use futures_core::Stream;
|
||||
#[cfg(feature = "stream")]
|
||||
|
|
|
|||
|
|
@ -3,15 +3,14 @@ use super::accept::Accept;
|
|||
use super::conn::Http as Http_;
|
||||
#[cfg(all(feature = "tcp"))]
|
||||
use super::tcp::AddrIncoming;
|
||||
use crate::body::{Body, HttpBody};
|
||||
use crate::body::Body;
|
||||
use crate::common::exec::Exec;
|
||||
use crate::common::exec::{ConnStreamExec, NewSvcExec};
|
||||
use crate::common::{task, Future, Pin, Poll, Unpin};
|
||||
use crate::common::exec::NewSvcExec;
|
||||
use crate::common::{task, Future, Pin, Poll};
|
||||
use crate::service::{HttpService, MakeServiceRef};
|
||||
use pin_project_lite::pin_project;
|
||||
use std::error::Error as StdError;
|
||||
#[cfg(feature = "tcp")]
|
||||
use tokio::io::{AsyncRead, AsyncWrite};
|
||||
|
||||
pub struct Server<I, S, E = Exec> {
|
||||
incoming: I,
|
||||
make_service: S,
|
||||
|
|
|
|||
|
|
@ -104,24 +104,6 @@ pub(super) struct Pending {
|
|||
pub(super) fn pending() -> (Pending, OnUpgrade) {
|
||||
loop {}
|
||||
}
|
||||
impl Upgraded {
|
||||
#[cfg(any(feature = "http1", feature = "http2", test))]
|
||||
pub(super) fn new<T>(io: T, read_buf: Bytes) -> Self
|
||||
where
|
||||
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
|
||||
{
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
pub(crate) fn downcast<T: AsyncRead + AsyncWrite + Unpin + 'static>(
|
||||
self,
|
||||
) -> Result<Parts<T>, Self> {
|
||||
loop {}
|
||||
}
|
||||
}
|
||||
impl AsyncRead for Upgraded {
|
||||
fn poll_read(
|
||||
mut self: Pin<&mut Self>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue