pub enum WriteMode {
Create,
Overwrite,
Resume {
offset: u64,
},
}Expand description
How an upload should open (or resume) its target stream.
Variants§
Create
Create the file; fail with AlreadyExists if present.
Overwrite
Create or truncate the file.
Resume
Continue writing at offset; fail if the file is not exactly
offset bytes yet.
Trait Implementations§
impl Copy for WriteMode
impl Eq for WriteMode
impl StructuralPartialEq for WriteMode
Auto Trait Implementations§
impl Freeze for WriteMode
impl RefUnwindSafe for WriteMode
impl Send for WriteMode
impl Sync for WriteMode
impl Unpin for WriteMode
impl UnsafeUnpin for WriteMode
impl UnwindSafe for WriteMode
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