pub enum ToolbarOutput {
OpenFolder,
NavigateTo(PathBuf),
FilterRequested,
SplitView,
Collapse,
ClosePane,
PaneItem(ShortcutTarget),
}Expand description
Intent produced by the toolbar, forwarded to the app.
Variants§
OpenFolder
The user asked to pick a folder to browse (from the hamburger menu).
The user pressed Enter in the path entry with a (possibly new) path.
FilterRequested
The user asked (from the top-bar menu) to open the panel filter bar.
SplitView
The user requested a new split pane.
Collapse
The user requested to hide this pane’s entire side (the whole dock).
ClosePane
The user requested to close this pane (exits the app on the last one).
PaneItem(ShortcutTarget)
A configurable pane-menu item resolved to a tree builtin or custom command. The app routes builtins to the pane’s tree and reports errors for commands.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolbarOutput
impl RefUnwindSafe for ToolbarOutput
impl Send for ToolbarOutput
impl Sync for ToolbarOutput
impl Unpin for ToolbarOutput
impl UnsafeUnpin for ToolbarOutput
impl UnwindSafe for ToolbarOutput
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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