Debian Codegraph @

src/cursor/futures_imp.rs

raw symbols SCIP
1 // Copyright (c) The buf-list Contributors
2 // SPDX-License-Identifier: Apache-2.0
3
4 use craterust-analyzer cargo buf-list 1.1.2 crate/::{BufListrust-analyzer cargo buf-list 1.1.2 imp/BufList#, Cursorrust-analyzer cargo buf-list 1.1.2 cursor/Cursor#};
5 use futures_io_03rust-analyzer cargo futures-io 0.3.25 crate/::{AsyncBufReadrust-analyzer cargo futures-io 0.3.25 if_std/AsyncBufRead#, AsyncReadrust-analyzer cargo futures-io 0.3.25 if_std/AsyncRead#, AsyncSeekrust-analyzer cargo futures-io 0.3.25 if_std/AsyncSeek#};
6 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{
7 iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::{selfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/, IoSliceMutrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/IoSliceMut#, SeekFromrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/SeekFrom#},
8 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#,
9 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#},
10 };
11
12 impl<T: AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<BufListrust-analyzer cargo buf-list 1.1.2 imp/BufList#> + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> AsyncSeekrust-analyzer cargo futures-io 0.3.25 if_std/AsyncSeek# for Cursorrust-analyzer cargo buf-list 1.1.2 cursor/Cursor#<T> {
13 fn poll_seekrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncSeek]poll_seek().(
14 mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncSeek]>,
15 _: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>,
16 pos: SeekFromrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/SeekFrom#,
17 ) -> 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#<u64>> {
18 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#(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Seekrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Seek#::seekrust-analyzer cargo buf-list 1.1.2 cursor/impl#[`Cursor<T>`][Seek]seek().(&mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self, pos))
19 }
20 }
21
22 impl<T: AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<BufListrust-analyzer cargo buf-list 1.1.2 imp/BufList#> + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> AsyncReadrust-analyzer cargo futures-io 0.3.25 if_std/AsyncRead# for Cursorrust-analyzer cargo buf-list 1.1.2 cursor/Cursor#<T> {
23 fn poll_readrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncRead]poll_read().(
24 mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncRead]>,
25 _cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>,
26 buf: &mut [u8],
27 ) -> 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#<usize>> {
28 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#(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#::readrust-analyzer cargo buf-list 1.1.2 cursor/impl#[`Cursor<T>`][Read]read().(&mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self, buf))
29 }
30
31 fn poll_read_vectoredrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncRead]poll_read_vectored().(
32 mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncRead]>,
33 _: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>,
34 bufs: &mut [IoSliceMutrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/IoSliceMut#<'_>],
35 ) -> 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#<usize>> {
36 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#(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#::read_vectoredrust-analyzer cargo buf-list 1.1.2 cursor/impl#[`Cursor<T>`][Read]read_vectored().(&mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self, bufs))
37 }
38 }
39
40 impl<T: AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<BufListrust-analyzer cargo buf-list 1.1.2 imp/BufList#> + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#> AsyncBufReadrust-analyzer cargo futures-io 0.3.25 if_std/AsyncBufRead# for Cursorrust-analyzer cargo buf-list 1.1.2 cursor/Cursor#<T> {
41 fn poll_fill_bufrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncBufRead]poll_fill_buf().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncBufRead]>, _: &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#<&[u8]>> {
42 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#(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::BufReadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/BufRead#::fill_bufrust-analyzer cargo buf-list 1.1.2 cursor/impl#[`Cursor<T>`][BufRead]fill_buf().(self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().()))
43 }
44
45 fn consumerust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncBufRead]consume().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo buf-list 1.1.2 cursor/futures_imp/impl#[`Cursor<T>`][AsyncBufRead]>, amt: usize) {
46 iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::BufReadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/BufRead#::consumerust-analyzer cargo buf-list 1.1.2 cursor/impl#[`Cursor<T>`][BufRead]consume().(&mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`][DerefMut]deref_mut().self, amt)
47 }
48 }