Struct rustube::CallbackArguments
source · [−]Expand description
Arguments given either to a on_progress callback or on_progress receiver
Fields
current_chunk: usize
content_length: Option<u64>
It’s more idiomatic to use this content length instead of a prefetched value since the content of this field might change in the future during the download.
Trait Implementations
sourceimpl Clone for CallbackArguments
impl Clone for CallbackArguments
sourcefn clone(&self) -> CallbackArguments
fn clone(&self) -> CallbackArguments
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for CallbackArguments
impl Send for CallbackArguments
impl Sync for CallbackArguments
impl Unpin for CallbackArguments
impl UnwindSafe for CallbackArguments
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more