| 1 |
use craterust-analyzer cargo sqlx-core 0.8.3 crate/::netrust-analyzer cargo sqlx-core 0.8.3 net/::Socketrust-analyzer cargo sqlx-core 0.8.3 net/socket/Socket#; |
| 2 |
|
| 3 |
use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/; |
| 4 |
use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::{Readrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Read#, Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#}; |
| 5 |
use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::netrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/::{Shutdownrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/Shutdown#, TcpStreamrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/tcp/TcpStream#}; |
| 6 |
|
| 7 |
use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::taskrust-analyzer cargo std https://github.com/rust-lang/rust/library/std task/::{Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#}; |
| 8 |
|
| 9 |
use craterust-analyzer cargo sqlx-core 0.8.3 crate/::iorust-analyzer cargo sqlx-core 0.8.3 io/::ReadBufrust-analyzer cargo sqlx-core 0.8.3 io/read_buf/ReadBuf#; |
| 10 |
use async_iorust-analyzer cargo async-io 2.6.0 crate/::Asyncrust-analyzer cargo async-io 2.6.0 Async#; |
| 11 |
|
| 12 |
impl Socketrust-analyzer cargo sqlx-core 0.8.3 net/socket/Socket# for Asyncrust-analyzer cargo async-io 2.6.0 Async#<TcpStreamrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/tcp/TcpStream#> { |
| 13 |
fn try_readrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<TcpStream>`][Socket]try_read().(&mut self, buf: &mut dyn ReadBufrust-analyzer cargo sqlx-core 0.8.3 io/read_buf/ReadBuf#) -> iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize> { |
| •14 |
unsafe { |
| 15 |
self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().readrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/tcp/impl#[TcpStream][Read]read().(buf.init_mutrust-analyzer cargo sqlx-core 0.8.3 io/read_buf/ReadBuf#init_mut().()) |
| •16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
fn try_writerust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<TcpStream>`][Socket]try_write().(&mut self, buf: &[u8]) -> iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize> { |
| •20 |
unsafe { |
| 21 |
self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/tcp/impl#[TcpStream][Write]write().(buf) |
| •22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
fn poll_read_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<TcpStream>`][Socket]poll_read_ready().(&mut self, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| 26 |
self.poll_readablerust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]poll_readable().(cx) |
| 27 |
} |
| 28 |
|
| 29 |
fn poll_write_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<TcpStream>`][Socket]poll_write_ready().(&mut self, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| 30 |
self.poll_writablerust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]poll_writable().(cx) |
| 31 |
} |
| 32 |
|
| 33 |
fn poll_shutdownrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<TcpStream>`][Socket]poll_shutdown().(&mut self, _cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| •34 |
unsafe { |
| 35 |
Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().shutdownrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/tcp/impl#[TcpStream]shutdown().(Shutdownrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/Shutdown#::Bothrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/Shutdown#Both#)) |
| •36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
#[cfg(unix)] |
| 41 |
impl Socketrust-analyzer cargo sqlx-core 0.8.3 net/socket/Socket# for Asyncrust-analyzer cargo async-io 2.6.0 Async#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::unixrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/::netrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/net/::UnixStreamrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/net/stream/UnixStream#> { |
| 42 |
fn try_readrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<std::os::unix::net::UnixStream>`][Socket]try_read().(&mut self, buf: &mut dyn ReadBufrust-analyzer cargo sqlx-core 0.8.3 io/read_buf/ReadBuf#) -> iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize> { |
| •43 |
unsafe { |
| 44 |
self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().readrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/net/stream/impl#[UnixStream][Read]read().(buf.init_mutrust-analyzer cargo sqlx-core 0.8.3 io/read_buf/ReadBuf#init_mut().()) |
| •45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
fn try_writerust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<std::os::unix::net::UnixStream>`][Socket]try_write().(&mut self, buf: &[u8]) -> iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize> { |
| •49 |
unsafe { |
| 50 |
self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/net/stream/impl#[UnixStream][Write]write().(buf) |
| •51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
fn poll_read_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<std::os::unix::net::UnixStream>`][Socket]poll_read_ready().(&mut self, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| 55 |
self.poll_readablerust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]poll_readable().(cx) |
| 56 |
} |
| 57 |
|
| 58 |
fn poll_write_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<std::os::unix::net::UnixStream>`][Socket]poll_write_ready().(&mut self, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| •59 |
self.poll_writablerust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]poll_writable().(cx) |
| 60 |
} |
| 61 |
|
| 62 |
fn poll_shutdownrust-analyzer cargo sqlx-core 0.8.3 rt/rt_async_std/socket/impl#[`Async<std::os::unix::net::UnixStream>`][Socket]poll_shutdown().(&mut self, _cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> { |
| •63 |
unsafe { |
| 64 |
Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(self.get_mutrust-analyzer cargo async-io 2.6.0 impl#[`Async<T>`]get_mut().().shutdownrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/unix/net/stream/impl#[UnixStream]shutdown().(Shutdownrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/Shutdown#::Bothrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/Shutdown#Both#)) |
| •65 |
} |
| 66 |
} |
| 67 |
} |