pub enum AppMsg {
Show 17 variants
PaneToolbar {
id: u64,
out: ToolbarOutput,
},
PaneTree {
id: u64,
out: TreeOutput,
},
PaneShortcut {
id: u64,
action: ContextAction,
},
OpenFolderPicked {
id: u64,
path: Option<PathBuf>,
},
LaunchRequest {
command: Command,
},
SplitFromPane {
id: u64,
},
OpenSplitFrom {
id: u64,
root: PathBuf,
},
OpenOppositeFrom {
id: u64,
root: PathBuf,
},
ClosePane {
id: u64,
},
FilterChanged {
id: u64,
filter: String,
},
FilterClosed {
id: u64,
},
Shutdown,
ResizeBy {
side: PanelSide,
delta: i32,
},
ResizeCommit,
FocusPane {
id: u64,
},
BookmarkEvent {
id: u64,
event: BookmarkEvent,
},
BookmarkEditSaved {
index: usize,
name: String,
path: PathBuf,
},
}Expand description
Messages handled by the app itself.
Variants§
PaneToolbar
Output from the top bar of pane id.
PaneTree
Output from the tree of pane id.
PaneShortcut
A pane-menu shortcut fired anywhere in pane id (the tree, the path
entry, or the filter bar), resolved from the [pane_menu] accelerators.
OpenFolderPicked
The folder-picker launched for pane id returned.
LaunchRequest
A new tree-space invocation was forwarded by the instance socket.
SplitFromPane
Split pane id’s dock, seeding the new pane from id’s root.
OpenSplitFrom
Split pane id’s dock with a specific root (context-menu “Open in Split
View”).
OpenOppositeFrom
Open root in a pane on the dock opposite pane id’s (context-menu
“In {other} panel”).
ClosePane
Remove pane id (closes the dock, or the whole app, when it is the
last pane).
FilterChanged
Pane id’s filter text changed (empty string clears the filter).
FilterClosed
Close pane id’s filter bar and cancel its filter.
Shutdown
Quit requested (window close). Tears media down before the window closes.
ResizeBy
Change the width of side’s dock by delta px (drag / keyboard).
ResizeCommit
Persist the width after an interactive resize finishes.
FocusPane
Move keyboard focus into pane id’s tree (after it is allocated).
BookmarkEvent
The bookmarks view in pane id reported a user action.
BookmarkEditSaved
The bookmark editor for index index was saved with the new values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppMsg
impl RefUnwindSafe for AppMsg
impl Send for AppMsg
impl Sync for AppMsg
impl Unpin for AppMsg
impl UnsafeUnpin for AppMsg
impl UnwindSafe for AppMsg
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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> 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