pub enum DownloadBehavior {
Deny,
Allow {
dir: PathBuf,
},
AllowAndName {
dir: PathBuf,
},
Default,
}Expand description
What the page does with a download.
Variants§
Deny
Refuse every download.
Allow
Save under the file’s own name into dir.
AllowAndName
Save into dir named by the download’s GUID (no name collisions, no caller-controlled names).
Default
Chrome’s default behaviour.
Trait Implementations§
Source§impl Clone for DownloadBehavior
impl Clone for DownloadBehavior
Source§impl Debug for DownloadBehavior
impl Debug for DownloadBehavior
impl Eq for DownloadBehavior
Source§impl PartialEq for DownloadBehavior
impl PartialEq for DownloadBehavior
impl StructuralPartialEq for DownloadBehavior
Auto Trait Implementations§
impl Forget for DownloadBehavior
impl Freeze for DownloadBehavior
impl Move for DownloadBehavior
impl RefUnwindSafe for DownloadBehavior
impl Send for DownloadBehaviorwhere
RawVecInner: Send,
impl Sync for DownloadBehaviorwhere
RawVecInner: Sync,
impl Unpin for DownloadBehavior
impl UnsafeUnpin for DownloadBehavior
impl UnwindSafe for DownloadBehaviorwhere
RawVecInner: UnwindSafe,
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