google-apis-rs icon indicating copy to clipboard operation
google-apis-rs copied to clipboard

[Feature] Google Drive: Allow progress monitoring for downloads & uploads

Open semtexzv opened this issue 3 years ago • 3 comments

When working with large files, It'd be nice to be able to monitor the progress of upload/download. Adding a new method to delegate that would be called after every chunk with position in the stream.

semtexzv avatar Sep 03 '22 10:09 semtexzv

I do conquer!

It might be interesting to implement it so that the caller can inspect the chunk and its bytes, as to allow calculations to happen while streaming.

Byron avatar Sep 04 '22 12:09 Byron

This would be super cool as well! I was just now trying to do it, but I also was not able to inspect percentage for file upload, and would get only a response once its finished via the Delegate Trait.

I would gladly help: problem is I am bit new to rust, but not sure how difficult this would be to implement. Perhaps if you could help me with pointers or where to look/what to look out for, I could give it a try, and perhaps message if super confused :).

Btw: Very helpful and cool videos on your Learning Rust with Gitoxide playlist. I have watched some of them and found them very helpful to improve my Rust:)

dmatos2012 avatar Nov 05 '22 12:11 dmatos2012

Thanks, it's good to hear these videos make a difference :).

As for learning Rust, this project probably isn't well suited as it's mostly python and a template language called 'mako', which generates all the Rust code. Working with it isn't terrible, but definitely more abstract than it should be for stepping into Rust. On top of that I am swamped and can't offer any mentoring. I will review PRs though in case you want to give it a shot anyway.

Byron avatar Nov 06 '22 09:11 Byron