| 1 | use futuresrust-analyzer cargo futures 0.3.34 crate/::iorust-analyzer cargo futures-util 0.3.34 io/::{AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead#, AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite#}; |
| 2 | use pin_projectrust-analyzer cargo pin-project 1.1.13 crate/::pin_projectrust-analyzer cargo pin-project-internal 1.1.13 pin_project:; |
| 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/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#; |
| 4 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::markerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/::Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#; |
| 5 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::{Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#, DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut#}; |
| 6 | 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#; |
| 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 | #[pin_projectrust-analyzer cargo pin-project-internal 1.1.13 pin_project:] |
| 10 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 11 | pub(craterust-analyzer cargo futures_codec 0.4.1 crate/) struct Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 12 | #[pinrust-analyzer cargo pin-project-internal 1.1.13 pin:] |
| 13 | pub trust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#t.: T, |
| 14 | pub urust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#u.: U, |
| 15 | } |
| 16 | |
| 17 | impl<T, U> Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 18 | pub(craterust-analyzer cargo futures_codec 0.4.1 crate/) fn newrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`]new().(t: T, u: U) -> Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`] { |
| 19 | Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`] { trust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#t., urust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#u. } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | impl<T, U> Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref# for Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 24 | type Targetrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][Deref]Target# = T; |
| 25 | |
| 26 | fn derefrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][Deref]deref().(&self) -> &T { |
| 27 | &self.trust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#t. |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | impl<T, U> DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut# for Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 32 | fn deref_mutrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][DerefMut]deref_mut().(&mut self) -> &mut T { |
| 33 | &mut self.trust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#t. |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | impl<T: AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#, U> AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# for Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 38 | fn poll_readrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncRead]poll_read().( |
| 39 | self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncRead]>, |
| 40 | cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>, |
| 41 | buf: &mut [u8], |
| 42 | ) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> { |
| 43 | self.projectrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`]project().().trust-analyzer cargo futures_codec 0.4.1 fuse/__FuseProjection#t..poll_readrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead#poll_read().(cx, buf) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | impl<T: AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#, U> AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# for Fuserust-analyzer cargo futures_codec 0.4.1 fuse/Fuse#<T, U> { |
| 48 | fn poll_writerust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]poll_write().( |
| 49 | self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]>, |
| 50 | cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, |
| 51 | buf: &[u8], |
| 52 | ) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> { |
| 53 | self.projectrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`]project().().trust-analyzer cargo futures_codec 0.4.1 fuse/__FuseProjection#t..poll_writerust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite#poll_write().(cx, buf) |
| 54 | } |
| 55 | fn poll_flushrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]poll_flush().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]>, 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#<Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> { |
| 56 | self.projectrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`]project().().trust-analyzer cargo futures_codec 0.4.1 fuse/__FuseProjection#t..poll_flushrust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite#poll_flush().(cx) |
| 57 | } |
| 58 | fn poll_closerust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]poll_close().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`][AsyncWrite]>, 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#<Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#>> { |
| 59 | self.projectrust-analyzer cargo futures_codec 0.4.1 fuse/impl#[`Fuse<T, U>`]project().().trust-analyzer cargo futures_codec 0.4.1 fuse/__FuseProjection#t..poll_closerust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite#poll_close().(cx) |
| 60 | } |
| 61 | } |