ptth/crates/ptth_quic/src/prelude.rs

50 lines
546 B
Rust
Raw Normal View History

2021-07-17 01:10:30 +00:00
pub use std::{
collections::*,
ffi::OsString,
iter::FromIterator,
net::SocketAddr,
sync::{
Arc,
atomic::{
AtomicU64,
Ordering,
},
},
time::{
Duration,
Instant,
},
2021-07-17 01:10:30 +00:00
};
2021-07-18 18:41:25 +00:00
pub use anyhow::{
Context,
bail,
};
2021-07-17 00:58:35 +00:00
pub use futures_util::StreamExt;
pub use tokio::{
io::{
AsyncReadExt,
AsyncWriteExt,
},
net::TcpListener,
sync::{
Mutex,
mpsc,
},
task::JoinHandle,
};
pub use rand::{
Rng,
RngCore,
};
2021-07-17 00:58:35 +00:00
pub use tracing::{
debug,
error,
info,
2021-07-17 21:42:51 +00:00
trace,
2021-07-17 00:58:35 +00:00
warn,
};
pub use crate::protocol;
2021-07-17 00:58:35 +00:00
pub use crate::quinn_utils::*;