Enum qiniu_http::OnProgressCallback
source · [−]pub enum OnProgressCallback<'r> {
Boxed(Box<dyn Fn(TransferProgressInfo<'_>) -> AnyResult<()> + Send + Sync + 'r>),
Referenced(&'r (dyn Fn(TransferProgressInfo<'_>) -> AnyResult<()> + Send + Sync + 'r)),
}
Expand description
上传进度回调
Variants
Boxed(Box<dyn Fn(TransferProgressInfo<'_>) -> AnyResult<()> + Send + Sync + 'r>)
用 Box 包装的上传进度回调
Referenced(&'r (dyn Fn(TransferProgressInfo<'_>) -> AnyResult<()> + Send + Sync + 'r))
上传进度回调的引用
Implementations
Trait Implementations
sourceimpl Debug for OnProgressCallback<'_>
impl Debug for OnProgressCallback<'_>
sourceimpl<'r> Deref for OnProgressCallback<'r>
impl<'r> Deref for OnProgressCallback<'r>
Auto Trait Implementations
impl<'r> !RefUnwindSafe for OnProgressCallback<'r>
impl<'r> Send for OnProgressCallback<'r>
impl<'r> Sync for OnProgressCallback<'r>
impl<'r> Unpin for OnProgressCallback<'r>
impl<'r> !UnwindSafe for OnProgressCallback<'r>
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