pub enum FileSource {
File(File),
Bytes(Vec<u8>),
Path(PathBuf),
}Expand description
Where a file response’s bytes come from
Adapters read this to completion before upload, so a Path is opened lazily
and only once.
Variants§
File(File)
An already-open file handle
Bytes(Vec<u8>)
Bytes held in memory
Path(PathBuf)
A path to read at send time
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileSource
impl !RefUnwindSafe for FileSource
impl !UnwindSafe for FileSource
impl Send for FileSource
impl Sync for FileSource
impl Unpin for FileSource
impl UnsafeUnpin for FileSource
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