We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ac6dd commit d17c6f6Copy full SHA for d17c6f6
src/provider/event_proto.rs
@@ -236,6 +236,24 @@ impl Client {
236
}
237
})
238
239
+
240
+ pub async fn transfer_completed(&self, f: impl Fn() -> TransferCompleted) -> ClientResult {
241
+ Ok(if let Some(client) = &self.inner {
242
+ match self.mask.transfer_complete {
243
+ EventMode2::Notify => client.notify(f()).await?,
244
+ EventMode2::None => {}
245
+ }
246
+ })
247
248
249
+ pub async fn transfer_aborted(&self, f: impl Fn() -> TransferAborted) -> ClientResult {
250
251
+ match self.mask.transfer_aborted {
252
253
254
255
256
257
258
259
#[rpc_requests(message = ProviderMessage)]
0 commit comments