pub enum UploadSource {
Path(PathBuf),
Reader {
reader: Box<dyn Read + Send>,
content_length: u64,
},
}Expand description
Source data for a single upload.
Variants§
Path(PathBuf)
Upload from a local file path.
Reader
Upload from a blocking reader with an explicit content length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UploadSource
impl !RefUnwindSafe for UploadSource
impl Send for UploadSource
impl !Sync for UploadSource
impl Unpin for UploadSource
impl UnsafeUnpin for UploadSource
impl !UnwindSafe for UploadSource
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