Debian Codegraph @

src/transfer/mod.rs

raw symbols SCIP
1 //! Transfer-related types.
2 //!
3 //! Use the methods on an [`Interface`][`super::Interface`] to make individual
4 //! transfers or obtain a [`Queue`] to manage multiple transfers.
5
6 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{
7 fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#,
8 futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/::Futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#,
9 iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/,
10 markerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/::PhantomDatarust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/PhantomData#,
11 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#},
12 };
13
14 use craterust-analyzer cargo nusb 0.1.13 crate/::platformrust-analyzer cargo nusb 0.1.13 platform/;
15
16 mod queuerust-analyzer cargo nusb 0.1.13 transfer/queue/;
17 pub use queuerust-analyzer cargo nusb 0.1.13 transfer/queue/::Queuerust-analyzer cargo nusb 0.1.13 transfer/queue/Queue#;
18
19 mod bufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/;
20 pub use bufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/::{RequestBufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/RequestBuffer#, ResponseBufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/ResponseBuffer#};
21
22 mod controlrust-analyzer cargo nusb 0.1.13 transfer/control/;
23 #[allow(unused)]
24 pub(craterust-analyzer cargo nusb 0.1.13 crate/) use controlrust-analyzer cargo nusb 0.1.13 transfer/control/::SETUP_PACKET_SIZErust-analyzer cargo nusb 0.1.13 transfer/control/SETUP_PACKET_SIZE.;
25 pub use controlrust-analyzer cargo nusb 0.1.13 transfer/control/::{Controlrust-analyzer cargo nusb 0.1.13 transfer/control/Control#, ControlInrust-analyzer cargo nusb 0.1.13 transfer/control/ControlIn#, ControlOutrust-analyzer cargo nusb 0.1.13 transfer/control/ControlOut#, ControlTyperust-analyzer cargo nusb 0.1.13 transfer/control/ControlType#, Directionrust-analyzer cargo nusb 0.1.13 transfer/control/Direction#, Recipientrust-analyzer cargo nusb 0.1.13 transfer/control/Recipient#};
26
27 mod internalrust-analyzer cargo nusb 0.1.13 transfer/internal/;
28 pub(craterust-analyzer cargo nusb 0.1.13 crate/) use internalrust-analyzer cargo nusb 0.1.13 transfer/internal/::{
29 notify_completionrust-analyzer cargo nusb 0.1.13 transfer/internal/notify_completion()., PlatformSubmitrust-analyzer cargo nusb 0.1.13 transfer/internal/PlatformSubmit#, PlatformTransferrust-analyzer cargo nusb 0.1.13 transfer/internal/PlatformTransfer#, TransferHandlerust-analyzer cargo nusb 0.1.13 transfer/internal/TransferHandle#, TransferRequestrust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#,
30 };
31
32 /// Endpoint type.
33 #[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:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)]
34 #[allow(dead_code)]
35 pub enum EndpointTyperust-analyzer cargo nusb 0.1.13 transfer/EndpointType# {
36 /// Control endpoint.
37 Controlrust-analyzer cargo nusb 0.1.13 transfer/EndpointType#Control# = 0,
38
39 /// Isochronous endpoint.
40 Isochronousrust-analyzer cargo nusb 0.1.13 transfer/EndpointType#Isochronous# = 1,
41
42 /// Bulk endpoint.
43 Bulkrust-analyzer cargo nusb 0.1.13 transfer/EndpointType#Bulk# = 2,
44
45 /// Interrupt endpoint.
46 Interruptrust-analyzer cargo nusb 0.1.13 transfer/EndpointType#Interrupt# = 3,
47 }
48
49 /// Transfer error.
50 #[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:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)]
51 pub enum TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError# {
52 /// Transfer was cancelled.
53 Cancelledrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Cancelled#,
54
55 /// Endpoint in a STALL condition.
56 ///
57 /// This is used by the device to signal that an error occurred. For bulk
58 /// and interrupt endpoints, the stall condition can be cleared with
59 /// [`Interface::clear_halt`][crate::Interface::clear_halt]. For control
60 /// requests, the stall is automatically cleared when another request is
61 /// submitted.
62 Stallrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Stall#,
63
64 /// Device disconnected.
65 Disconnectedrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Disconnected#,
66
67 /// Hardware issue or protocol violation.
68 Faultrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Fault#,
69
70 /// Unknown or OS-specific error.
71 Unknownrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Unknown#,
72 }
73
74 impl Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError# {
75 fn fmtrust-analyzer cargo nusb 0.1.13 transfer/impl#[TransferError][Display]fmt().(&self, f: &mut stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
76 match self {
77 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Cancelledrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Cancelled# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "transfer was cancelled"),
78 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Stallrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Stall# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "endpoint STALL condition"),
79 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Disconnectedrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Disconnected# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "device disconnected"),
80 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Faultrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Fault# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "hardware fault or protocol violation"),
81 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Unknownrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Unknown# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "unknown error"),
82 }
83 }
84 }
85
86 impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError# {}
87
88 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#> for 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# {
89 fn fromrust-analyzer cargo nusb 0.1.13 transfer/impl#[`io::Error`][`From<TransferError>`]from().(value: TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#) -> Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[`io::Error`][`From<TransferError>`] {
90 match value {
91 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Cancelledrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Cancelled# => 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#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::Interruptedrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#Interrupted#, value),
92 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Stallrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Stall# => 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#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::ConnectionResetrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#ConnectionReset#, value),
93 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Disconnectedrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Disconnected# => 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#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::ConnectionAbortedrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#ConnectionAborted#, value),
94 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Faultrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Fault# => 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#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::Otherrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#Other#, value),
95 TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#::Unknownrust-analyzer cargo nusb 0.1.13 transfer/TransferError#Unknown# => 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#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::Otherrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#Other#, value),
96 }
97 }
98 }
99
100 /// Status and data returned on transfer completion.
101 ///
102 /// A transfer can return partial data even in the case of failure or
103 /// cancellation, thus this is a struct containing both `data` and `status`
104 /// rather than a `Result`. Use [`into_result`][`Completion::into_result`] to
105 /// ignore a partial transfer and get a `Result`.
106 #[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:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
107 #[must_use]
108 pub struct Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<T> {
109 /// Returned data or buffer to re-use.
110 pub datarust-analyzer cargo nusb 0.1.13 transfer/Completion#data.: T,
111
112 /// Indicates successful completion or error.
113 pub statusrust-analyzer cargo nusb 0.1.13 transfer/Completion#status.: Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#>,
114 }
115
116 impl<T> Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<T> {
117 /// Ignore any partial completion, turning `self` into a `Result` containing
118 /// either the completed buffer for a successful transfer or a
119 /// `TransferError`.
120 pub fn into_resultrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Completion<T>`]into_result().(self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<T, TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#> {
121 self.statusrust-analyzer cargo nusb 0.1.13 transfer/Completion#status..maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(|()| self.datarust-analyzer cargo nusb 0.1.13 transfer/Completion#data.)
122 }
123 }
124
125 impl TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>>> for Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8> {
126 type Errorrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Vec<u8>`][`TryFrom<Completion<Vec<u8>>>`]Error# = TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#;
127
128 fn try_fromrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Vec<u8>`][`TryFrom<Completion<Vec<u8>>>`]try_from().(c: Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Vec<u8>`][`TryFrom<Completion<Vec<u8>>>`], Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Vec<u8>`][`TryFrom<Completion<Vec<u8>>>`]::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#> {
129 c.into_resultrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Completion<T>`]into_result().()
130 }
131 }
132
133 impl TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<ResponseBufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/ResponseBuffer#>> for ResponseBufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/ResponseBuffer# {
134 type Errorrust-analyzer cargo nusb 0.1.13 transfer/impl#[ResponseBuffer][`TryFrom<Completion<ResponseBuffer>>`]Error# = TransferErrorrust-analyzer cargo nusb 0.1.13 transfer/TransferError#;
135
136 fn try_fromrust-analyzer cargo nusb 0.1.13 transfer/impl#[ResponseBuffer][`TryFrom<Completion<ResponseBuffer>>`]try_from().(c: Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<ResponseBufferrust-analyzer cargo nusb 0.1.13 transfer/buffer/ResponseBuffer#>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[ResponseBuffer][`TryFrom<Completion<ResponseBuffer>>`], Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[ResponseBuffer][`TryFrom<Completion<ResponseBuffer>>`]::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#> {
137 c.into_resultrust-analyzer cargo nusb 0.1.13 transfer/impl#[`Completion<T>`]into_result().()
138 }
139 }
140
141 /// [`Future`] used to await the completion of a transfer.
142 ///
143 /// Use the methods on [`Interface`][super::Interface] to
144 /// submit an individual transfer and obtain a `TransferFuture`.
145 ///
146 /// The transfer is cancelled on drop. The buffer and
147 /// any partially-completed data are destroyed. This means
148 /// that `TransferFuture` is not [cancel-safe] and cannot be used
149 /// in `select!{}`, When racing a `TransferFuture` with a timeout
150 /// you cannot tell whether data may have been partially transferred on timeout.
151 /// Use the [`Queue`] interface if these matter for your application.
152 ///
153 /// [cancel-safe]: https://docs.rs/tokio/latest/tokio/macro.select.html#cancellation-safety
154 pub struct TransferFuturerust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#<D: TransferRequestrust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#> {
155 transferrust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#transfer.: TransferHandlerust-analyzer cargo nusb 0.1.13 transfer/internal/TransferHandle#<platformrust-analyzer cargo nusb 0.1.13 platform/::TransferDatarust-analyzer cargo nusb 0.1.13 platform/linux_usbfs/transfer/TransferData#>,
156 tyrust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#ty.: PhantomDatarust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/PhantomData#<D::Responserust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#Response#>,
157 }
158
159 impl<D: TransferRequestrust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#> TransferFuturerust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#<D> {
160 pub(craterust-analyzer cargo nusb 0.1.13 crate/) fn newrust-analyzer cargo nusb 0.1.13 transfer/impl#[`TransferFuture<D>`]new().(transfer: TransferHandlerust-analyzer cargo nusb 0.1.13 transfer/internal/TransferHandle#<platformrust-analyzer cargo nusb 0.1.13 platform/::TransferDatarust-analyzer cargo nusb 0.1.13 platform/linux_usbfs/transfer/TransferData#>) -> TransferFuturerust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#<D> {
161 TransferFuturerust-analyzer cargo nusb 0.1.13 transfer/TransferFuture# {
162 transferrust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#transfer.,
163 tyrust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#ty.: PhantomDatarust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/PhantomData#,
164 }
165 }
166 }
167
168 impl<D: TransferRequestrust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#> Futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future# for TransferFuturerust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#<D>
169 where
170 platformrust-analyzer cargo nusb 0.1.13 platform/::TransferDatarust-analyzer cargo nusb 0.1.13 platform/linux_usbfs/transfer/TransferData#: PlatformSubmitrust-analyzer cargo nusb 0.1.13 transfer/internal/PlatformSubmit#<D>,
171 D::Responserust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#Response#: Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#,
172 {
173 type Outputrust-analyzer cargo nusb 0.1.13 transfer/impl#[`TransferFuture<D>`][Future]Output# = Completionrust-analyzer cargo nusb 0.1.13 transfer/Completion#<D::Responserust-analyzer cargo nusb 0.1.13 transfer/internal/TransferRequest#Response#>;
174
175 fn pollrust-analyzer cargo nusb 0.1.13 transfer/impl#[`TransferFuture<D>`][Future]poll().(mut self: 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#<&mut Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[`TransferFuture<D>`][Future]>, 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#<Selfrust-analyzer cargo nusb 0.1.13 transfer/impl#[`TransferFuture<D>`][Future]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#Output#> {
176 self.as_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]as_mut().().transferrust-analyzer cargo nusb 0.1.13 transfer/TransferFuture#transfer..poll_completionrust-analyzer cargo nusb 0.1.13 transfer/internal/impl#[`TransferHandle<P>`]poll_completion().::<D>(cx)
177 }
178 }