Trait taskcluster_download::AsyncWriterFactory[][src]

pub trait AsyncWriterFactory {
#[must_use]    fn get_writer<'a, 'async_trait>(
        &'a mut self
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncWrite + Unpin + 'a>>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

An AsyncWriterFactory can produce, on demand, an AsyncWrite object. In the event of a download failure, the restarted download will use a fresh writer to restart writing at the beginning.

Required methods

#[must_use]fn get_writer<'a, 'async_trait>(
    &'a mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncWrite + Unpin + 'a>>> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 
[src]

Get a fresh AsyncWrite object, positioned at the point where downloaded data should be written.

Loading content...

Implementors

impl AsyncWriterFactory for CursorWriterFactory<Vec<u8>>[src]

impl AsyncWriterFactory for FileWriterFactory[src]

impl<'impl0> AsyncWriterFactory for CursorWriterFactory<&'impl0 mut [u8]>[src]

Loading content...