pub struct FileWriterFactory(/* private fields */);
Expand description
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§
Trait Implementations§
Source§impl AsyncWriterFactory for FileWriterFactory
impl AsyncWriterFactory for FileWriterFactory
Source§fn get_writer<'a, 'async_trait>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncWrite + Unpin + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn get_writer<'a, 'async_trait>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncWrite + Unpin + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Get a fresh AsyncWrite object, positioned at the point where downloaded data should
be written.
Auto Trait Implementations§
impl !Freeze for FileWriterFactory
impl !RefUnwindSafe for FileWriterFactory
impl Send for FileWriterFactory
impl Sync for FileWriterFactory
impl Unpin for FileWriterFactory
impl UnwindSafe for FileWriterFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more