pub enum Delivery {
Handle,
Upload,
Download,
}Expand description
How a file reached the application.
Variants§
Handle
The file itself, in the file system. Writing it again changes the same file. Every file on a desktop or a phone is delivered this way.
Upload
A copy the browser handed over from a file input. It can be read and not written.
Download
A save that became a download. Every write is a new download, and the browser may rename it, so the same file cannot be changed again.
Trait Implementations§
impl Copy for Delivery
impl Eq for Delivery
Source§impl From<FileDelivery> for Delivery
impl From<FileDelivery> for Delivery
Source§fn from(value: FileDelivery) -> Self
fn from(value: FileDelivery) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Delivery
Auto Trait Implementations§
impl Forget for Delivery
impl Freeze for Delivery
impl Move for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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