Struct qiniu_http::TransferProgressInfo
source · [−]pub struct TransferProgressInfo<'b> { /* private fields */ }
Expand description
数据传输进度信息
Implementations
sourceimpl<'b> TransferProgressInfo<'b>
impl<'b> TransferProgressInfo<'b>
sourcepub fn transferred_bytes(&self) -> u64
pub fn transferred_bytes(&self) -> u64
获取已经传输的数据量
单位为字节
sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
获取总共需要传输的数据量
单位为字节
Trait Implementations
Auto Trait Implementations
impl<'b> RefUnwindSafe for TransferProgressInfo<'b>
impl<'b> Send for TransferProgressInfo<'b>
impl<'b> Sync for TransferProgressInfo<'b>
impl<'b> Unpin for TransferProgressInfo<'b>
impl<'b> UnwindSafe for TransferProgressInfo<'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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