Struct taskcluster_upload::CursorReaderFactory [−][src]
pub struct CursorReaderFactory(_);
Expand description
A CusorReaderFactory creates AsyncRead objects from a std::io::Cursor, allowing uploads from in-memory buffers. Note that this struct clones the given data for each retry, although this behavior may be optimized in the future.
Implementations
Trait Implementations
impl AsyncReaderFactory for CursorReaderFactory[src]
impl AsyncReaderFactory for CursorReaderFactory[src]fn get_reader<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Sync + Send + Unpin + 'static>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, [src]
fn get_reader<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Sync + Send + Unpin + 'static>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, [src]Get a fresh AsyncRead object, positioned at the beginning of the data to be uploaded.
Auto Trait Implementations
impl RefUnwindSafe for CursorReaderFactory
impl Send for CursorReaderFactory
impl Sync for CursorReaderFactory
impl Unpin for CursorReaderFactory
impl UnwindSafe for CursorReaderFactory
Blanket Implementations
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self