pub struct UploadProgress<'a> {
pub path: &'a str,
pub size: u64,
pub index: usize,
pub total: usize,
}Expand description
Per-entry signal emitted by upload_collection /
upload_collection_entries when an UploadProgress callback is
configured. Mirrors bee-js streamDirectory onUploadProgress.
Fields§
§path: &'a strRelative path of the entry inside the collection.
size: u64Size of the entry in bytes.
index: usize0-based index of the entry within the collection.
total: usizeTotal number of entries in the collection.
Trait Implementations§
Source§impl<'a> Clone for UploadProgress<'a>
impl<'a> Clone for UploadProgress<'a>
Source§fn clone(&self) -> UploadProgress<'a>
fn clone(&self) -> UploadProgress<'a>
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<'a> Debug for UploadProgress<'a>
impl<'a> Debug for UploadProgress<'a>
impl<'a> Copy for UploadProgress<'a>
Auto Trait Implementations§
impl<'a> Freeze for UploadProgress<'a>
impl<'a> RefUnwindSafe for UploadProgress<'a>
impl<'a> Send for UploadProgress<'a>
impl<'a> Sync for UploadProgress<'a>
impl<'a> Unpin for UploadProgress<'a>
impl<'a> UnsafeUnpin for UploadProgress<'a>
impl<'a> UnwindSafe for UploadProgress<'a>
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