Trait UploadClientExt

Source
pub trait UploadClientExt
where Self: UploadClient,
{ // Provided method fn with_callback<F>(self, callback: F) -> WithCallback<Self, F> where Self: Sized, F: OnComplete<Self> { ... } }
Expand description

An extension trait adding convenience methods to existing UploadClients.

Provided Methods§

Source

fn with_callback<F>(self, callback: F) -> WithCallback<Self, F>
where Self: Sized, F: OnComplete<Self>,

Adds a custom implementation of the default method on_upload_complete adding specific handling of the entity tag of the completed upload in case it is required for some functionality.

Implementors§

Source§

impl<U> UploadClientExt for U
where U: UploadClient,