Trait taskcluster_upload::AsyncReaderFactory [−][src]
pub trait AsyncReaderFactory {
#[must_use]
fn get_reader<'a, 'async_trait>(
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Sync + Send + Unpin + 'static>>> + Send + 'async_trait>>
where
'a: 'async_trait,
Self: 'async_trait;
}Expand description
An AsyncReaderFactory can produce, on demand, an AsyncRead object. In the event of an upload failure, the restarted upload will use a fresh reader to start reading object content at the beginning.
Required methods
#[must_use]fn get_reader<'a, 'async_trait>(
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Sync + Send + Unpin + 'static>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait, [src]
#[must_use]fn get_reader<'a, 'async_trait>(
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Sync + Send + Unpin + 'static>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait, [src]Get a fresh AsyncRead object, positioned at the beginning of the data to be uploaded.