| 1 | 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/; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/::Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#; |
| 3 | 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#}; |
| 4 | |
| 5 | use tokiorust-analyzer cargo tokio 1.53.1 crate/::iorust-analyzer cargo tokio 1.53.1 io/::AsyncWriterust-analyzer cargo tokio 1.53.1 io/async_write/AsyncWrite#; |
| 6 | use tokiorust-analyzer cargo tokio 1.53.1 crate/::netrust-analyzer cargo tokio 1.53.1 net/::TcpStreamrust-analyzer cargo tokio 1.53.1 net/tcp/stream/TcpStream#; |
| 7 | |
| 8 | 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#; |
| 9 | 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#; |
| 10 | |
| 11 | impl Socketrust-analyzer cargo sqlx-core 0.8.3 net/socket/Socket# for TcpStreamrust-analyzer cargo tokio 1.53.1 net/tcp/stream/TcpStream# { |
| 12 | fn try_readrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[TcpStream][Socket]try_read().(&mut self, mut 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> { |
| 13 | // Requires `&mut impl BufMut` |
| 14 | self.try_read_bufrust-analyzer cargo tokio 1.53.1 net/tcp/stream/impl#[TcpStream]try_read_buf().(&mut buf) |
| 15 | } |
| 16 | |
| 17 | fn try_writerust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[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> { |
| 18 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).try_writerust-analyzer cargo tokio 1.53.1 net/tcp/stream/impl#[TcpStream]try_write().(buf) |
| 19 | } |
| 20 | |
| 21 | fn poll_read_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[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#<()>> { |
| 22 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).poll_read_readyrust-analyzer cargo tokio 1.53.1 net/tcp/stream/impl#[TcpStream]poll_read_ready().(cx) |
| 23 | } |
| 24 | |
| 25 | fn poll_write_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[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#<()>> { |
| 26 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).poll_write_readyrust-analyzer cargo tokio 1.53.1 net/tcp/stream/impl#[TcpStream]poll_write_ready().(cx) |
| 27 | } |
| 28 | |
| 29 | fn poll_shutdownrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[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#<()>> { |
| 30 | Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(self).poll_shutdownrust-analyzer cargo tokio 1.53.1 net/tcp/stream/impl#[TcpStream][AsyncWrite]poll_shutdown().(cx) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | #[cfg(unix)] |
| 35 | impl Socketrust-analyzer cargo sqlx-core 0.8.3 net/socket/Socket# for tokiorust-analyzer cargo tokio 1.53.1 crate/::netrust-analyzer cargo tokio 1.53.1 net/::UnixStreamrust-analyzer cargo tokio 1.53.1 net/unix/stream/UnixStream# { |
| 36 | fn try_readrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[`tokio::net::UnixStream`][Socket]try_read().(&mut self, mut 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> { |
| 37 | self.try_read_bufrust-analyzer cargo tokio 1.53.1 net/unix/stream/impl#[UnixStream]try_read_buf().(&mut buf) |
| 38 | } |
| 39 | |
| 40 | fn try_writerust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[`tokio::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> { |
| 41 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).try_writerust-analyzer cargo tokio 1.53.1 net/unix/stream/impl#[UnixStream]try_write().(buf) |
| 42 | } |
| 43 | |
| 44 | fn poll_read_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[`tokio::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#<()>> { |
| 45 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).poll_read_readyrust-analyzer cargo tokio 1.53.1 net/unix/stream/impl#[UnixStream]poll_read_ready().(cx) |
| 46 | } |
| 47 | |
| 48 | fn poll_write_readyrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[`tokio::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#<()>> { |
| 49 | (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self).poll_write_readyrust-analyzer cargo tokio 1.53.1 net/unix/stream/impl#[UnixStream]poll_write_ready().(cx) |
| 50 | } |
| 51 | |
| 52 | fn poll_shutdownrust-analyzer cargo sqlx-core 0.8.3 rt/rt_tokio/socket/impl#[`tokio::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#<()>> { |
| 53 | Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]new().(self).poll_shutdownrust-analyzer cargo tokio 1.53.1 net/unix/stream/impl#[UnixStream][AsyncWrite]poll_shutdown().(cx) |
| 54 | } |
| 55 | } |