Struct taskcluster_download::FileWriterFactory [−][src]
A FileWriterFactory creates AsyncWrite objects by rewinding and cloning a tokio::fs::File. The file must be open in write mode and must be clone-able (that is, File::try_clone() must succeed) in order to support retried uploads.
Implementations
impl FileWriterFactory
[src]
pub fn new(file: File) -> Self
[src]
pub async fn into_inner(self) -> Result<File>
[src]
Return the File, after finishing any concurrent async operations. The file posiion is unspecified.
Trait Implementations
impl AsyncWriterFactory for FileWriterFactory
[src]
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]
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncWrite + Unpin + 'a>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for FileWriterFactory
impl Send for FileWriterFactory
impl Sync for FileWriterFactory
impl Unpin for FileWriterFactory
impl !UnwindSafe for FileWriterFactory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,