pub struct OverwriteFileModal {
state: ModalState,
path: PathBuf,
}Expand description
The modal that is used to ask the user if the selected path should be overwritten.
Fields§
§state: ModalStateThe current state of the modal.
path: PathBufThe path selected for overwriting.
Implementations§
Trait Implementations§
Source§impl FileDialogModal for OverwriteFileModal
impl FileDialogModal for OverwriteFileModal
Source§fn update(&mut self, config: &FileDialogConfig, ui: &mut Ui) -> ModalState
fn update(&mut self, config: &FileDialogConfig, ui: &mut Ui) -> ModalState
Main update method of the modal.
Should be called every time the modal should be visible.
Source§fn update_keybindings(&mut self, config: &FileDialogConfig, ctx: &Context)
fn update_keybindings(&mut self, config: &FileDialogConfig, ctx: &Context)
Updates the configured keybindings for the modal window.
Auto Trait Implementations§
impl Freeze for OverwriteFileModal
impl RefUnwindSafe for OverwriteFileModal
impl Send for OverwriteFileModal
impl Sync for OverwriteFileModal
impl Unpin for OverwriteFileModal
impl UnwindSafe for OverwriteFileModal
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