pub struct StreamProgress {
pub total: usize,
pub processed: usize,
}Expand description
Per-chunk upload signal emitted by FileApi::stream_directory.
Mirrors bee-js UploadProgress.
Fields§
§total: usizeTotal chunks the upload will produce (computed before upload starts).
processed: usizeChunks uploaded so far (post-this-callback).
Trait Implementations§
Source§impl Clone for StreamProgress
impl Clone for StreamProgress
Source§fn clone(&self) -> StreamProgress
fn clone(&self) -> StreamProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamProgress
impl Debug for StreamProgress
impl Copy for StreamProgress
Auto Trait Implementations§
impl Freeze for StreamProgress
impl RefUnwindSafe for StreamProgress
impl Send for StreamProgress
impl Sync for StreamProgress
impl Unpin for StreamProgress
impl UnsafeUnpin for StreamProgress
impl UnwindSafe for StreamProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more