pub enum TreeOutput {
Status(String),
RootChanged(PathBuf),
OpenFolderRequested,
OpenSplit(PathBuf),
OpenOpposite(PathBuf),
PaneAction(BuiltinAction),
AddBookmark(PathBuf),
}Expand description
Notable events the tree reports upwards.
Variants§
Status(String)
A transient message for the status bar.
RootChanged(PathBuf)
The tree’s root changed.
OpenFolderRequested
The user asked to browse for a new root folder.
OpenSplit(PathBuf)
The user asked to open path as a new split pane.
OpenOpposite(PathBuf)
The user asked to open path in the dock on the opposite side.
PaneAction(BuiltinAction)
A pane-level builtin (Split View, Open Folder..., Collapse, …) fired
from a keyboard shortcut. The tree cannot perform it, so it forwards the
action upward for the app to handle.
AddBookmark(PathBuf)
The user asked to bookmark path (a directory).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeOutput
impl RefUnwindSafe for TreeOutput
impl Send for TreeOutput
impl Sync for TreeOutput
impl Unpin for TreeOutput
impl UnsafeUnpin for TreeOutput
impl UnwindSafe for TreeOutput
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