mirror of
https://github.com/Noratrieb/icefun.git
synced 2026-03-16 00:56:03 +01:00
loop
This commit is contained in:
parent
189f24e53b
commit
944f82360f
34 changed files with 95 additions and 134 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::collections::VecDeque;
|
||||
use std::io::IoSlice;
|
||||
use bytes::{Buf, BufMut, Bytes, BytesMut};
|
||||
use bytes::{Buf, Bytes};
|
||||
pub(crate) struct BufList<T> {
|
||||
bufs: VecDeque<T>,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
use std::cell::RefCell;
|
||||
use std::fmt::{self, Write};
|
||||
use std::fmt::{self};
|
||||
use std::str;
|
||||
use std::time::{Duration, SystemTime};
|
||||
use std::time::{SystemTime};
|
||||
#[cfg(feature = "http2")]
|
||||
use http::header::HeaderValue;
|
||||
use httpdate::HttpDate;
|
||||
|
||||
pub(crate) const DATE_VALUE_LENGTH: usize = 29;
|
||||
#[cfg(feature = "http1")]
|
||||
pub(crate) fn extend(dst: &mut Vec<u8>) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use std::mem;
|
||||
|
||||
use pin_project_lite::pin_project;
|
||||
use tokio::sync::watch;
|
||||
use super::{task, Future, Pin, Poll};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use std::marker::Unpin;
|
||||
use std::{cmp, io};
|
||||
use bytes::{Buf, Bytes};
|
||||
use std::{io};
|
||||
use bytes::{Bytes};
|
||||
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
|
||||
use crate::common::{task, Pin, Poll};
|
||||
/// Combine a buffer with an IO, rewinding reads to use the buffer.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
//! - The value `0` is reserved for closed.
|
||||
use futures_util::task::AtomicWaker;
|
||||
use std::sync::{
|
||||
atomic::{AtomicUsize, Ordering},
|
||||
atomic::{AtomicUsize},
|
||||
Arc,
|
||||
};
|
||||
use std::task;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue