id
stringlengths
22
133
text
stringlengths
40
40.2k
arch
stringclasses
1 value
syntax
stringclasses
1 value
kind
stringclasses
4 values
repo
stringclasses
27 values
path
stringlengths
5
116
license
stringclasses
6 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
16 values
source_url
stringlengths
85
196
line_start
int64
1
4.28k
line_end
int64
4
4.31k
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(tokio::time::sleep(Duration): Send & Sync); async_assert_fn!(tokio::time::sleep_until(Instant): Send & Sync); async_assert_fn!(tokio::time::timeout(Duration, BoxFutureSync<()>): Send & Sync); async_assert_fn!(tokio::time::timeout(Duration, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(tokio::time...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
async_assert_fn!(tokio::io::AsyncSeekExt::seek(&mut BoxAsyncSeek, SeekFrom): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write(&mut BoxAsyncWrite, &[u8]): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut B...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
d74d17307dd53215061c4a8a1f20a0e30461e296
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d74d17307dd53215061c4a8a1f20a0e30461e296/tokio/tests/async_send_sync.rs
321
343
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
trait AmbiguousIfSync<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfSync<()> for T {} impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {} trait AmbiguousIfUnpin<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfUnpin<()> for T {} impl<T: ?Sized + Unpin> AmbiguousIfUnpin<Invalid> for T {}...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
const _: fn() = || { let f: $type = todo!(); require_send(&f); AmbiguousIfSync::some_item(&f); }; }; ($type:ty: !Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f: $type = todo!(); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
AmbiguousIfSend::some_item(&f); require_sync(&f); }; }; ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f = $($f $(::<$($generic),*>)? )::+( $( int...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::canonicalize(&str): Send & Sync); async_assert_fn!(tokio::fs::copy(&str, &str): Send & Sync); async_assert_fn!(tokio::fs::create_dir(&str): Send & Sync); async_assert_fn!(tokio::fs::create_dir_all(&str): Send & Sync); async_assert_fn!(tokio::fs::hard_link(&str, &str): Send & Sync); async_ass...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::net::UdpSocket::connect(_, SocketAddr): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::send(_, &[u8]): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::recv(_, &mut [u8]): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::send_to(_, &[u8], SocketAddr): Send & Sync); async_assert_...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::sync::broadcast::Receiver<Cell<u8>>::recv(_): Send & Sync); async_assert_fn!(tokio::sync::broadcast::Receiver<Rc<u8>>::recv(_): !Send & !Sync); async_assert_fn!(tokio::sync::mpsc::Receiver<u8>::recv(_): Send & Sync); async_assert_fn!(tokio::sync::mpsc::Receiver<Cell<u8>>::recv(_): Send & Sync);...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
241
300
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(tokio::time::Interval::tick(_): Send & Sync); async_assert_fn!(tokio::io::AsyncBufReadExt::read_until(&mut BoxAsyncRead, u8, &mut Vec<u8>): !Unpin); async_assert_fn!(tokio::io::AsyncBufReadExt::read_line(&mut BoxAsyncRead, &mut String): !Unpin); async_assert_fn!(tokio::io::AsyncReadExt::read(&mut BoxA...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
8efa62013b551d5130791c3a79ce8ab5cb0b5abf
github
async-runtime
https://github.com/tokio-rs/tokio/blob/8efa62013b551d5130791c3a79ce8ab5cb0b5abf/tokio/tests/async_send_sync.rs
281
329
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use std::cell::Cell; use std::io::{Cursor, SeekFrom}; use std::net::SocketAddr; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, Instant}; #[allow(dead_code)] type BoxFutureSync<T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
trait AmbiguousIfSync<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfSync<()> for T {} impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {} trait AmbiguousIfUnpin<A> { fn some_item(&self) {} } impl<T: ?Sized> AmbiguousIfUnpin<()> for T {} impl<T: ?Sized + Unpin> AmbiguousIfUnpin<Invalid> for T {}...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
#[allow(unused_variables)] const _: fn() = || { let f: $type = todo!(); require_send(&f); AmbiguousIfSync::some_item(&f); }; }; ($type:ty: !Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
let f = $($f $(::<$($generic),*>)? )::+( $( into_todo!($arg) ),* ); AmbiguousIfSend::some_item(&f); require_sync(&f); }; }; ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & !Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::io::Split<Cursor<Vec<u8>>>::next_segment(_): Send & Sync); async_assert_fn!(tokio::fs::canonicalize(&str): Send & Sync); async_assert_fn!(tokio::fs::copy(&str, &str): Send & Sync); async_assert_fn!(tokio::fs::create_dir(&str): Send & Sync); async_assert_fn!(tokio::fs::create_dir_all(&str): Send...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::net::UdpSocket::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::connect(_, SocketAddr): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::send(_, &[u8]): Send & Sync); async_assert_fn!(tokio::net::UdpSocket::recv(_, &mut [u8]): Send & Sync); async_assert_fn!(tokio::ne...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::sync::RwLock<Rc<u8>>::read(_): !Send & !Sync); async_assert_fn!(tokio::sync::RwLock<Rc<u8>>::write(_): !Send & !Sync); async_assert_fn!(tokio::sync::Semaphore::acquire(_): Send & Sync); async_assert_fn!(tokio::sync::broadcast::Receiver<u8>::recv(_): Send & Sync); async_assert_fn!(tokio::sync::b...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
241
300
tokio-rs/tokio:tokio/tests/async_send_sync.rs:8
async_assert_fn!(tokio::time::timeout(Duration, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(tokio::time::timeout(Duration, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSync<()>): Send & Sync); async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSend<()>): Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
281
340
tokio-rs/tokio:tokio/tests/async_send_sync.rs:9
async_assert_fn!(tokio::io::AsyncWriteExt::write_all(&mut BoxAsyncWrite, &[u8]): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_u8(&mut BoxAsyncWrite, u8): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_i8(&mut BoxAsyncWrite, i8): !Unpin); async_assert_fn!(tokio::io::AsyncWriteExt::write_u16(&mut ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
02311dcfa13d719c3f591c922f8a719d7c954ef0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/02311dcfa13d719c3f591c922f8a719d7c954ef0/tokio/tests/async_send_sync.rs
321
341
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use std::cell::Cell; use std::io::Cursor; use std::net::SocketAddr; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, Instant}; #[allow(dead_code)] type BoxFutureSync<T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Send + Sync>>; ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
x }}; } macro_rules! assert_value { ($type:ty: Send & Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f: $type = todo!(); require_send(&f); require_sync(&f); }; }; ($type:ty: !Send & Sync) => { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
} macro_rules! async_assert_fn { ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f = $($f $(::<$($generic),*>)? )::+( $( into_todo!($arg) ),* ); require_send(&f)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
async_assert_fn!(tokio::io::copy(&mut TcpStream, &mut TcpStream): Send & Sync); async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio::i...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::accept(_): Send & Sync); async_assert_fn!(tok...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock_owned(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock_owned(_): !Send & !Sync); async_assert_fn!(tokio::sync::Notify::notified(_): Send & Sync); async_assert_fn!(tokio::sync::RwL...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
201
254
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalSet::run_until(_, BoxFutureSync<()>): !Send & !Sync); assert_value!(tokio::task::LocalSet: !Send & !Sync); async_assert_fn!(tokio::time::advance(Duration): Send & Sync); async_assert_fn...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5
github
async-runtime
https://github.com/tokio-rs/tokio/blob/53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5/tokio/tests/async_send_sync.rs
241
254
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock_owned(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock_owned(_): !Send & !Sync); async_assert_fn!(tokio::sync::Notify::notified(_): Send & Sync); async_assert_fn!(tokio::sync::RwL...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
a0557840eb424e174bf81a0175c40f9e176a2cc2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/a0557840eb424e174bf81a0175c40f9e176a2cc2/tokio/tests/async_send_sync.rs
201
254
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalSet::run_until(_, BoxFutureSync<()>): !Send & !Sync); assert_value!(tokio::task::LocalSet: !Send & !Sync); async_assert_fn!(tokio::time::advance(Duration): Send & Sync); async_assert_fn...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
a0557840eb424e174bf81a0175c40f9e176a2cc2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/a0557840eb424e174bf81a0175c40f9e176a2cc2/tokio/tests/async_send_sync.rs
241
254
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
async_assert_fn!(tokio::io::copy(&mut TcpStream, &mut TcpStream): Send & Sync); async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio::i...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2bc9a4815259c8ff4daa5e24f128ec826970d17f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2bc9a4815259c8ff4daa5e24f128ec826970d17f/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::accept(_): Send & Sync); async_assert_fn!(tok...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2bc9a4815259c8ff4daa5e24f128ec826970d17f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2bc9a4815259c8ff4daa5e24f128ec826970d17f/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock(_): !Send & !Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2bc9a4815259c8ff4daa5e24f128ec826970d17f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2bc9a4815259c8ff4daa5e24f128ec826970d17f/tokio/tests/async_send_sync.rs
201
258
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Rc<u32>>::scope(_, Rc<u32>, BoxFutureSync<()>): !Send & !Sync); async_as...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
2bc9a4815259c8ff4daa5e24f128ec826970d17f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2bc9a4815259c8ff4daa5e24f128ec826970d17f/tokio/tests/async_send_sync.rs
241
258
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::accept(_): Send & Sync); async_assert_fn!(tok...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
048174012d0cd8b0d763175ec2f1556e0d6fea95
github
async-runtime
https://github.com/tokio-rs/tokio/blob/048174012d0cd8b0d763175ec2f1556e0d6fea95/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock(_): !Send & !Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
048174012d0cd8b0d763175ec2f1556e0d6fea95
github
async-runtime
https://github.com/tokio-rs/tokio/blob/048174012d0cd8b0d763175ec2f1556e0d6fea95/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
048174012d0cd8b0d763175ec2f1556e0d6fea95
github
async-runtime
https://github.com/tokio-rs/tokio/blob/048174012d0cd8b0d763175ec2f1556e0d6fea95/tokio/tests/async_send_sync.rs
241
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
async_assert_fn!(tokio::io::copy(&mut TcpStream, &mut TcpStream): Send & Sync); async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio::i...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d58b70151d7dbb66139125520d383401396eb98
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d58b70151d7dbb66139125520d383401396eb98/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::into_std(_): Send & Sync); async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::ne...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d58b70151d7dbb66139125520d383401396eb98
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d58b70151d7dbb66139125520d383401396eb98/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock(_): !Send & !Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock_owned(_)...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d58b70151d7dbb66139125520d383401396eb98
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d58b70151d7dbb66139125520d383401396eb98/tokio/tests/async_send_sync.rs
201
260
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync); async_assert_fn!(tokio::task:...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
9d58b70151d7dbb66139125520d383401396eb98
github
async-runtime
https://github.com/tokio-rs/tokio/blob/9d58b70151d7dbb66139125520d383401396eb98/tokio/tests/async_send_sync.rs
241
261
tokio-rs/tokio:tokio/tests/async_send_sync.rs:7
async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync); async_assert_fn!(tokio::task:...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
264ae3bdb22004609de45b67e2890081bb47e5b2
github
async-runtime
https://github.com/tokio-rs/tokio/blob/264ae3bdb22004609de45b67e2890081bb47e5b2/tokio/tests/async_send_sync.rs
241
264
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::fs::File::into_std(_): Send & Sync); async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(SocketAddr): Send & Sync); async_assert_fn!(tokio::net::TcpListener::bind(SocketAddr): Send & Sync); async_assert_fn!(tokio::ne...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
4fc2adae4fcc76fa8ff1169fed3db6d7c9100c4a
github
async-runtime
https://github.com/tokio-rs/tokio/blob/4fc2adae4fcc76fa8ff1169fed3db6d7c9100c4a/tokio/tests/async_send_sync.rs
161
220
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock(_): !Send & !Sync); async_assert_fn!(tokio::sync::Notify::notified(_): Sen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
4fc2adae4fcc76fa8ff1169fed3db6d7c9100c4a
github
async-runtime
https://github.com/tokio-rs/tokio/blob/4fc2adae4fcc76fa8ff1169fed3db6d7c9100c4a/tokio/tests/async_send_sync.rs
201
258
tokio-rs/tokio:tokio/tests/async_send_sync.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use std::cell::Cell; use std::io::Cursor; use std::net::SocketAddr; use std::rc::Rc; use tokio::net::TcpStream; use tokio::time::{Duration, Instant}; #[allow(dead_code)] type BoxFutureSync<T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Send + Sync>>; ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
1
60
tokio-rs/tokio:tokio/tests/async_send_sync.rs:2
x }}; } macro_rules! async_assert_fn { ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & Sync) => { #[allow(unreachable_code)] #[allow(unused_variables)] const _: fn() = || { let f = $($f $(::<$($generic),*>)? )::+( $( into_todo!($arg) ),* ); requir...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
41
100
tokio-rs/tokio:tokio/tests/async_send_sync.rs:3
} async_assert_fn!(tokio::io::copy(&mut TcpStream, &mut TcpStream): Send & Sync); async_assert_fn!(tokio::io::empty(): Send & Sync); async_assert_fn!(tokio::io::repeat(u8): Send & Sync); async_assert_fn!(tokio::io::sink(): Send & Sync); async_assert_fn!(tokio::io::split(TcpStream): Send & Sync); async_assert_fn!(tokio...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
81
140
tokio-rs/tokio:tokio/tests/async_send_sync.rs:4
async_assert_fn!(tokio::fs::File::metadata(_): Send & Sync); async_assert_fn!(tokio::fs::File::try_clone(_): Send & Sync); async_assert_fn!(tokio::fs::File::into_std(_): Send & Sync); async_assert_fn!(tokio::fs::File::set_permissions(_, std::fs::Permissions): Send & Sync); async_assert_fn!(tokio::net::lookup_host(Sock...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
121
180
tokio-rs/tokio:tokio/tests/async_send_sync.rs:5
async_assert_fn!(tokio::stream::pending<Rc<u8>>(): Send & Sync); async_assert_fn!(tokio::stream::iter(std::vec::IntoIter<u8>): Send & Sync); async_assert_fn!(tokio::sync::Barrier::wait(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<u8>::lock(_): Send & Sync); async_assert_fn!(tokio::sync::Mutex<Cell<u8>>::lock(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
161
219
tokio-rs/tokio:tokio/tests/async_send_sync.rs:6
async_assert_fn!(tokio::task::LocalKey<u32>::scope(_, u32, BoxFuture<()>): !Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSync<()>): Send & !Sync); async_assert_fn!(tokio::task::LocalKey<Cell<u32>>::scope(_, Cell<u32>, BoxFutureSend<()>): Send & !Sync); async_assert_fn!(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/async_send_sync.rs
MIT
7c1bc460f7eccbeef62504d4799b6bccc909e46c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7c1bc460f7eccbeef62504d4799b6bccc909e46c/tokio/tests/async_send_sync.rs
201
219
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] #[cfg_attr(miri, ignore)] // No `socket` on miri. async fn echo_...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] #[cfg_attr(miri, ignore)] async fn echo_server() { const N: ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
161b8c80d58a4a070c7f41db18d43ea258737db7
github
async-runtime
https://github.com/tokio-rs/tokio/blob/161b8c80d58a4a070c7f41db18d43ea258737db7/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
c445e467ce4363b3a9b6825268814a9bc27c0127
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c445e467ce4363b3a9b6825268814a9bc27c0127/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv = asser...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
22cff80048c62ed0fa20065888667d00d5aedd14
github
async-runtime
https://github.com/tokio-rs/tokio/blob/22cff80048c62ed0fa20065888667d00d5aedd14/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(tokio_wasi)))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv = asser...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
b2ada60e701d5c9e6644cf8fc42a100774f8e23f
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b2ada60e701d5c9e6644cf8fc42a100774f8e23f/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi does not support bind() use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
6d3f92dddc510e9276191cfab1b0432ce8248589
github
async-runtime
https://github.com/tokio-rs/tokio/blob/6d3f92dddc510e9276191cfab1b0432ce8248589/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use tokio::net::TcpListener; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); let...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
78f2340d259487d4470681f97cc4b5eac719e178
github
async-runtime
https://github.com/tokio-rs/tokio/blob/78f2340d259487d4470681f97cc4b5eac719e178/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let srv = assert_ok!(TcpListener::bind("127.0....
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
066965cd59d01fd9d999152e32169a24dfe434fa
github
async-runtime
https://github.com/tokio-rs/tokio/blob/066965cd59d01fd9d999152e32169a24dfe434fa/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let mut srv = assert_ok!(TcpListener::bind("12...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
3ecaa6d91cef271b4c079a2e28bc3270280bcee6
github
async-runtime
https://github.com/tokio-rs/tokio/blob/3ecaa6d91cef271b4c079a2e28bc3270280bcee6/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let mut srv = assert_ok!(TcpListener::bind("12...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
7b4c999341809588a427a9a80d310ee4aa1c1a21
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7b4c999341809588a427a9a80d310ee4aa1c1a21/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let mut srv = assert_ok!(TcpListener::bind("127.0.0.1:0").await); le...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
227533d456fe32e48ffcd3796f1e6c8f9318b230
github
async-runtime
https://github.com/tokio-rs/tokio/blob/227533d456fe32e48ffcd3796f1e6c8f9318b230/tokio/tests/buffered.rs
1
50
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let mut srv = assert_ok!(TcpListener::bind(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
fc1640891e1cb4a2bf1ab032452e0e3ef6daf22c
github
async-runtime
https://github.com/tokio-rs/tokio/blob/fc1640891e1cb4a2bf1ab032452e0e3ef6daf22c/tokio/tests/buffered.rs
1
51
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let addr = assert_ok!("127.0.0.1:0".parse()...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
a791f4a758604768463d3ca2162b913dcea34c40
github
async-runtime
https://github.com/tokio-rs/tokio/blob/a791f4a758604768463d3ca2162b913dcea34c40/tokio/tests/buffered.rs
1
52
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let addr = assert_...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
73102760cfe1632b6b8073dfa5a506c0e69e4b5e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/73102760cfe1632b6b8073dfa5a506c0e69e4b5e/tokio/tests/buffered.rs
1
53
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![feature(async_await)] #![deny(warnings, rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::prelude::*; use tokio_test::assert_ok; use std::io::prelude::*; use std::net::TcpStream; use std::thread; #[tokio::test] async fn echo_server() { const N: usize = 1024; let addr...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
962521f449dead58eb37eb46857bc6c52ee3a8da
github
async-runtime
https://github.com/tokio-rs/tokio/blob/962521f449dead58eb37eb46857bc6c52ee3a8da/tokio/tests/buffered.rs
1
53
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![cfg(feature = "broken")] #![deny(warnings, rust_2018_idioms)] use env_logger; use futures::stream::Stream; use futures::Future; use std::io::{BufReader, BufWriter, Read, Write}; use std::net::TcpStream; use std::thread; use tokio::net::TcpListener; use tokio_io::io::copy; macro_rules! t { ($e:expr) => { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/buffered.rs
1
60
tokio-rs/tokio:tokio/tests/buffered.rs:2
let mut expected = Vec::<u8>::new(); for _i in 0..N { expected.extend(msg.as_bytes()); assert_eq!(t!(s.write(msg.as_bytes())), msg.len()); } (expected, t2) }); let clients = srv.incoming().take(2).collect(); let copied = clients.and_then(|clients| { l...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/buffered.rs
41
63
tokio-rs/tokio:tokio/tests/buffered.rs:1
#![deny(warnings, rust_2018_idioms)] use env_logger; use futures::stream::Stream; use futures::Future; use std::io::{BufReader, BufWriter, Read, Write}; use std::net::TcpStream; use std::thread; use tokio::net::TcpListener; use tokio_io::io::copy; macro_rules! t { ($e:expr) => { match $e { Ok(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0/tokio/tests/buffered.rs
1
60
tokio-rs/tokio:tokio/tests/buffered.rs:2
for _i in 0..N { expected.extend(msg.as_bytes()); assert_eq!(t!(s.write(msg.as_bytes())), msg.len()); } (expected, t2) }); let clients = srv.incoming().take(2).collect(); let copied = clients.and_then(|clients| { let mut clients = clients.into_iter(); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/buffered.rs
MIT
cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0/tokio/tests/buffered.rs
41
62
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] use tokio::runtime; use tokio::time::clock::Clock; use tokio::time::*; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio::time::clock::Now for MockNow { fn now(&self) -> Instant { self.0 } } #[test] fn clock_and_timer_concurrent(...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
7e35922a1d282b1e3dadf037cd237be336b331fb
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7e35922a1d282b1e3dadf037cd237be336b331fb/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/clock.rs:2
#[test] fn clock_and_timer_single_threaded() { let when = Instant::now() + Duration::from_millis(5_000); let clock = Clock::new_with_now(MockNow(when)); let mut rt = runtime::Builder::new() .current_thread() .clock(clock) .build() .unwrap(); rt.block_on(async move { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
7e35922a1d282b1e3dadf037cd237be336b331fb
github
async-runtime
https://github.com/tokio-rs/tokio/blob/7e35922a1d282b1e3dadf037cd237be336b331fb/tokio/tests/clock.rs
41
67
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] use tokio::runtime; use tokio::timer::clock::Clock; use tokio::timer::*; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio::timer::clock::Now for MockNow { fn now(&self) -> Instant { self.0 } } #[test] fn clock_and_timer_concurre...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
d5c1119c881c9a8b511aa9000fd26b9bda014256
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d5c1119c881c9a8b511aa9000fd26b9bda014256/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] use tokio::runtime; use tokio::timer::clock::Clock; use tokio::timer::*; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio::timer::clock::Now for MockNow { fn now(&self) -> Instant { self.0 } } #[test] fn clock_and_timer_concurre...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
d70c928d88dff9e3e8d673b8ee02bce131598550
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d70c928d88dff9e3e8d673b8ee02bce131598550/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/clock.rs:2
let clock = Clock::new_with_now(MockNow(when)); let mut rt = runtime::Builder::new() .current_thread() .clock(clock) .build() .unwrap(); rt.block_on(async move { delay(when).await; assert!(Instant::now() < when); }); } #[test] fn mocked_clock_delay_for() { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
d70c928d88dff9e3e8d673b8ee02bce131598550
github
async-runtime
https://github.com/tokio-rs/tokio/blob/d70c928d88dff9e3e8d673b8ee02bce131598550/tokio/tests/clock.rs
41
63
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] use tokio::runtime::{self, current_thread}; use tokio::timer::clock::Clock; use tokio::timer::*; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio::timer::clock::Now for MockNow { fn now(&self) -> Instant { self.0 } } #[test] fn ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
b8cee1a60ad99ef28ec494ae4230e2ef4399fcf9
github
async-runtime
https://github.com/tokio-rs/tokio/blob/b8cee1a60ad99ef28ec494ae4230e2ef4399fcf9/tokio/tests/clock.rs
1
57
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow { fn now(&self) -> I...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
34e388619faf84d61560fb8c9fef910d6458f743
github
async-runtime
https://github.com/tokio-rs/tokio/blob/34e388619faf84d61560fb8c9fef910d6458f743/tokio/tests/clock.rs
1
59
tokio-rs/tokio:tokio/tests/clock.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow { fn now(&self) -> I...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
a791f4a758604768463d3ca2162b913dcea34c40
github
async-runtime
https://github.com/tokio-rs/tokio/blob/a791f4a758604768463d3ca2162b913dcea34c40/tokio/tests/clock.rs
1
49
tokio-rs/tokio:tokio/tests/clock.rs:1
#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
2d56312b89ba407272b161290d563551efc896a6
github
async-runtime
https://github.com/tokio-rs/tokio/blob/2d56312b89ba407272b161290d563551efc896a6/tokio/tests/clock.rs
1
50
tokio-rs/tokio:tokio/tests/clock.rs:1
#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
73102760cfe1632b6b8073dfa5a506c0e69e4b5e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/73102760cfe1632b6b8073dfa5a506c0e69e4b5e/tokio/tests/clock.rs
1
50
tokio-rs/tokio:tokio/tests/clock.rs:1
#![feature(async_await)] #![deny(warnings, rust_2018_idioms)] #![cfg(feature = "default")] use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; use std::sync::mpsc; use std::time::{Duration, Instant}; struct MockNow(Instant); impl tokio_timer::clock::Now f...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
962521f449dead58eb37eb46857bc6c52ee3a8da
github
async-runtime
https://github.com/tokio-rs/tokio/blob/962521f449dead58eb37eb46857bc6c52ee3a8da/tokio/tests/clock.rs
1
50
tokio-rs/tokio:tokio/tests/clock.rs:1
#![cfg(feature = "broken")] #![deny(warnings, rust_2018_idioms)] use env_logger; use std::sync::mpsc; use std::time::{Duration, Instant}; use tokio::prelude::*; use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; struct MockNow(Instant); impl tokio_timer::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/clock.rs:2
rx.recv().unwrap(); } #[test] fn clock_and_timer_single_threaded() { let _ = env_logger::try_init(); let when = Instant::now() + Duration::from_millis(5_000); let clock = Clock::new_with_now(MockNow(when)); let mut rt = current_thread::Builder::new().clock(clock).build().unwrap(); rt.block_on({ ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/clock.rs
41
63
tokio-rs/tokio:tokio/tests/clock.rs:1
#![deny(warnings, rust_2018_idioms)] use env_logger; use std::sync::mpsc; use std::time::{Duration, Instant}; use tokio::prelude::*; use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
4f6395b31c2e5e550188c8ae01de2c4eaee2937b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/4f6395b31c2e5e550188c8ae01de2c4eaee2937b/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/clock.rs:1
#![deny(warnings, rust_2018_idioms)] use env_logger; use std::sync::mpsc; use std::time::{Duration, Instant}; use tokio::prelude::*; use tokio::runtime::{self, current_thread}; use tokio::timer::*; use tokio_timer; use tokio_timer::clock::Clock; struct MockNow(Instant); impl tokio_timer::clock::Now for MockNow { ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/clock.rs
MIT
cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0/tokio/tests/clock.rs
1
60
tokio-rs/tokio:tokio/tests/coop_budger.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", target_os = "linux"))] use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use tokio::net::UdpSocket; /// Ensure that UDP sockets have functional budgeting /// /// # Design /// Two sockets communicate by spamming packets from one to the other. //...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budger.rs
MIT
ab7313ff6b9107c8b9c6a068c620ac56935b80e7
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ab7313ff6b9107c8b9c6a068c620ac56935b80e7/tokio/tests/coop_budger.rs
1
60
tokio-rs/tokio:tokio/tests/coop_budger.rs:2
tx.connect(rx.local_addr().unwrap()).await.unwrap(); rx.connect(tx.local_addr().unwrap()).await.unwrap(); let tracker = Arc::new(AtomicUsize::default()); let tracker_clone = Arc::clone(&tracker); tokio::task::yield_now().await; tokio::spawn(async move { loop { tracker_clone.f...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budger.rs
MIT
ab7313ff6b9107c8b9c6a068c620ac56935b80e7
github
async-runtime
https://github.com/tokio-rs/tokio/blob/ab7313ff6b9107c8b9c6a068c620ac56935b80e7/tokio/tests/coop_budger.rs
41
77
tokio-rs/tokio:tokio/tests/coop_budget.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", target_os = "linux"))] use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use tokio::net::UdpSocket; use tokio::task::coop::{consume_budget, has_budget_remaining}; const BUDGET: usize = 128; /// Ensure that UDP sockets have functional budgeting...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17/tokio/tests/coop_budget.rs
1
60
tokio-rs/tokio:tokio/tests/coop_budget.rs:2
// bind each socket to a dynamic port, forcing IPv4 addressing on the localhost interface let tx = UdpSocket::bind("127.0.0.1:0").await.unwrap(); let rx = UdpSocket::bind("127.0.0.1:0").await.unwrap(); tx.connect(rx.local_addr().unwrap()).await.unwrap(); rx.connect(tx.local_addr().unwrap()).await.unwra...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17/tokio/tests/coop_budget.rs
41
93
tokio-rs/tokio:tokio/tests/coop_budget.rs:3
#[tokio::test] async fn test_has_budget_remaining() { // At the beginning, budget should be available. assert!(has_budget_remaining()); // Deplete the budget for _ in 0..BUDGET { consume_budget().await; } assert!(!has_budget_remaining()); }
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17/tokio/tests/coop_budget.rs
81
93
tokio-rs/tokio:tokio/tests/coop_budget.rs:2
// bind each socket to a dynamic port, forcing IPv4 addressing on the localhost interface let tx = UdpSocket::bind("127.0.0.1:0").await.unwrap(); let rx = UdpSocket::bind("127.0.0.1:0").await.unwrap(); tx.connect(rx.local_addr().unwrap()).await.unwrap(); rx.connect(tx.local_addr().unwrap()).await.unwra...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
605ef578df04f12a951060dc3b2fb930f6f379fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/605ef578df04f12a951060dc3b2fb930f6f379fe/tokio/tests/coop_budget.rs
41
93
tokio-rs/tokio:tokio/tests/coop_budget.rs:3
#[tokio::test] async fn test_has_budget_remaining() { // At the begining budget should be available assert!(has_budget_remaining()); // Deplete the budget for _ in 0..BUDGET { consume_budget().await; } assert!(!has_budget_remaining()); }
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
605ef578df04f12a951060dc3b2fb930f6f379fe
github
async-runtime
https://github.com/tokio-rs/tokio/blob/605ef578df04f12a951060dc3b2fb930f6f379fe/tokio/tests/coop_budget.rs
81
93
tokio-rs/tokio:tokio/tests/coop_budget.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", target_os = "linux"))] use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use tokio::net::UdpSocket; /// Ensure that UDP sockets have functional budgeting /// /// # Design /// Two sockets communicate by spamming packets from one to the other. //...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
4047d7962a02722859b0f1c7bbcd85bc1bfc865d
github
async-runtime
https://github.com/tokio-rs/tokio/blob/4047d7962a02722859b0f1c7bbcd85bc1bfc865d/tokio/tests/coop_budget.rs
1
60
tokio-rs/tokio:tokio/tests/coop_budget.rs:2
let rx = UdpSocket::bind("127.0.0.1:0").await.unwrap(); tx.connect(rx.local_addr().unwrap()).await.unwrap(); rx.connect(tx.local_addr().unwrap()).await.unwrap(); let tracker = Arc::new(AtomicUsize::default()); let tracker_clone = Arc::clone(&tracker); tokio::task::yield_now().await; tokio::...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
4047d7962a02722859b0f1c7bbcd85bc1bfc865d
github
async-runtime
https://github.com/tokio-rs/tokio/blob/4047d7962a02722859b0f1c7bbcd85bc1bfc865d/tokio/tests/coop_budget.rs
41
78
tokio-rs/tokio:tokio/tests/coop_budget.rs:1
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", target_os = "linux"))] use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use tokio::net::UdpSocket; /// Ensure that UDP sockets have functional budgeting /// /// # Design /// Two sockets communicate by spamming packets from one to the other. //...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/coop_budget.rs
MIT
161b8c80d58a4a070c7f41db18d43ea258737db7
github
async-runtime
https://github.com/tokio-rs/tokio/blob/161b8c80d58a4a070c7f41db18d43ea258737db7/tokio/tests/coop_budget.rs
1
60
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio_net::driver::{self, Reactor}; use tokio_test::{assert_err, assert_pending, assert_ready, task}; #[test] fn tcp_doesnt_block() { let reactor = Reactor::new().unwrap(); let handle = reactor.handle(); // Set the c...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
c9bcbe77b9fa36868cc94cc75426823c7ec205ac
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c9bcbe77b9fa36868cc94cc75426823c7ec205ac/tokio/tests/drop-core.rs
1
48
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio_net::driver::Reactor; use tokio_test::{assert_err, assert_pending, assert_ready, task}; #[test] fn tcp_doesnt_block() { let reactor = Reactor::new().unwrap(); let handle = reactor.handle(); let listener = std::n...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
a791f4a758604768463d3ca2162b913dcea34c40
github
async-runtime
https://github.com/tokio-rs/tokio/blob/a791f4a758604768463d3ca2162b913dcea34c40/tokio/tests/drop-core.rs
1
40
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio_net::driver::Reactor; use tokio_test::{assert_err, assert_pending, assert_ready, task}; #[test] fn tcp_doesnt_block() { let reactor = Reactor::new().unwrap(); let handle = reactor.handle(); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
f1f61a3b15d17767b12bfd8c0c5712db1b089b0b
github
async-runtime
https://github.com/tokio-rs/tokio/blob/f1f61a3b15d17767b12bfd8c0c5712db1b089b0b/tokio/tests/drop-core.rs
1
41
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![feature(async_await)] #![warn(rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::reactor::Reactor; use tokio_test::{assert_err, assert_pending, assert_ready, task}; #[test] fn tcp_doesnt_block() { let reactor = Reactor::new().unwrap(); let handle = reactor.handle(); ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
73102760cfe1632b6b8073dfa5a506c0e69e4b5e
github
async-runtime
https://github.com/tokio-rs/tokio/blob/73102760cfe1632b6b8073dfa5a506c0e69e4b5e/tokio/tests/drop-core.rs
1
41
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![feature(async_await)] #![deny(warnings, rust_2018_idioms)] #![cfg(feature = "default")] use tokio::net::TcpListener; use tokio::reactor::Reactor; use tokio_test::{assert_err, assert_pending, assert_ready, task}; #[test] fn tcp_doesnt_block() { let reactor = Reactor::new().unwrap(); let handle = reactor.han...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
962521f449dead58eb37eb46857bc6c52ee3a8da
github
async-runtime
https://github.com/tokio-rs/tokio/blob/962521f449dead58eb37eb46857bc6c52ee3a8da/tokio/tests/drop-core.rs
1
41
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![cfg(feature = "broken")] #![deny(warnings, rust_2018_idioms)] use futures::future; use futures::prelude::*; use futures::sync::oneshot; use std::net; use std::thread; use tokio::net::TcpListener; use tokio::reactor::Reactor; #[test] fn tcp_doesnt_block() { let core = Reactor::new().unwrap(); let handle = c...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/drop-core.rs
1
41
tokio-rs/tokio:tokio/tests/drop-core.rs:1
#![deny(warnings, rust_2018_idioms)] use futures::future; use futures::prelude::*; use futures::sync::oneshot; use std::net; use std::thread; use tokio::net::TcpListener; use tokio::reactor::Reactor; #[test] fn tcp_doesnt_block() { let core = Reactor::new().unwrap(); let handle = core.handle(); let listen...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/drop-core.rs
MIT
cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0
github
async-runtime
https://github.com/tokio-rs/tokio/blob/cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0/tokio/tests/drop-core.rs
1
40
tokio-rs/tokio:tokio/tests/duplex_stream.rs:1
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] use std::io::IoSlice; use tokio::io::{AsyncReadExt, AsyncWriteExt}; const HELLO: &[u8] = b"hello world..."; #[tokio::test] async fn write_vectored() { let (mut client, mut server) = tokio::io::duplex(64); let ret = client .write_vectored(&[IoSlice...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/duplex_stream.rs
MIT
c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17
github
async-runtime
https://github.com/tokio-rs/tokio/blob/c6d58ce7e7bf4a6e7e6efc1ffeb42daa3a627c17/tokio/tests/duplex_stream.rs
1
47
tokio-rs/tokio:tokio/tests/enumerate.rs:1
#![cfg(feature = "broken")] #![deny(warnings, rust_2018_idioms)] use futures::sync::mpsc; use tokio::util::StreamExt; #[test] fn enumerate() { use futures::*; let (mut tx, rx) = mpsc::channel(1); std::thread::spawn(|| { for i in 0..5 { tx = tx.send(i * 2).wait().unwrap(); } ...
rust
rust
testsuite
tokio-rs/tokio
tokio/tests/enumerate.rs
MIT
29e417c257c62ae95cfa73f6b56825b3f833dde8
github
async-runtime
https://github.com/tokio-rs/tokio/blob/29e417c257c62ae95cfa73f6b56825b3f833dde8/tokio/tests/enumerate.rs
1
24