pub enum Hook {
Show 25 variants
OnNavigate {
from: PathBuf,
to: PathBuf,
},
OnDrillDown {
path: PathBuf,
},
OnBack {
from: PathBuf,
to: PathBuf,
},
OnScanStart {
path: PathBuf,
},
OnScanProgress {
files_scanned: u64,
dirs_scanned: u64,
bytes_scanned: u64,
},
OnScanComplete {
path: PathBuf,
total_files: u64,
total_dirs: u64,
total_size: u64,
},
OnScanError {
path: PathBuf,
error: String,
},
OnDeleteStart {
items: Vec<PathBuf>,
use_trash: bool,
},
OnDeleteComplete {
deleted: usize,
failed: usize,
bytes_freed: u64,
},
OnCopyStart {
sources: Vec<PathBuf>,
destination: PathBuf,
},
OnCopyComplete {
succeeded: usize,
failed: usize,
bytes_copied: u64,
},
OnMoveStart {
sources: Vec<PathBuf>,
destination: PathBuf,
},
OnMoveComplete {
succeeded: usize,
failed: usize,
},
OnRenameStart {
source: PathBuf,
new_name: String,
},
OnRenameComplete {
source: PathBuf,
new_path: PathBuf,
},
OnDuplicatesFound {
group_count: usize,
wasted_bytes: u64,
},
OnAgeAnalysisComplete {
stale_dirs: usize,
oldest_age_secs: u64,
},
OnRender {
view: String,
width: u16,
height: u16,
},
OnAction {
action: String,
},
OnModeChange {
from: String,
to: String,
},
OnSelectionChange {
selected: Vec<PathBuf>,
count: usize,
},
OnStartup,
OnShutdown,
OnPluginLoad {
name: String,
},
OnPluginUnload {
name: String,
},
}Expand description
Events that plugins can hook into.
Variants§
Fired when navigating to a new directory.
OnDrillDown
Fired when drilling down into a directory.
OnBack
Fired when navigating back.
OnScanStart
Fired when a scan operation starts.
OnScanProgress
Fired periodically during scanning with progress info.
Fields
OnScanComplete
Fired when scan completes successfully.
Fields
OnScanError
Fired when scan fails.
OnDeleteStart
Fired before deletion starts.
OnDeleteComplete
Fired after deletion completes.
Fields
OnCopyStart
Fired before copy operation starts.
OnCopyComplete
Fired after copy completes.
Fields
OnMoveStart
Fired before move operation starts.
OnMoveComplete
Fired after move completes.
Fields
OnRenameStart
Fired before rename operation.
OnRenameComplete
Fired after rename completes.
OnDuplicatesFound
Fired when duplicate analysis completes.
Fields
OnAgeAnalysisComplete
Fired when age analysis completes.
Fields
OnRender
Fired before rendering a view.
OnAction
Fired when user performs an action.
OnModeChange
Fired when application mode changes.
OnSelectionChange
Fired when selection changes.
OnStartup
Fired when application starts.
OnShutdown
Fired when application is about to quit.
OnPluginLoad
Fired when a plugin is loaded.
OnPluginUnload
Fired when a plugin is unloaded.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hook
impl<'de> Deserialize<'de> for Hook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more