[−][src]Struct broot::filesystems::FilesystemState
an application state showing the currently mounted filesystems
Implementations
impl FilesystemState
[src]
pub fn new(
path: &Path,
tree_options: TreeOptions,
con: &AppContext
) -> Result<FilesystemState, ProgramError>
[src]
path: &Path,
tree_options: TreeOptions,
con: &AppContext
) -> Result<FilesystemState, ProgramError>
create a state listing the filesystem, trying to select the one containing the path given in argument. Not finding any filesystem is considered an error and prevents the opening of this state.
pub fn count(&self) -> usize
[src]
pub fn try_scroll(&mut self, cmd: ScrollCommand) -> bool
[src]
Trait Implementations
impl AppState for FilesystemState
[src]
pub fn set_mode(&mut self, mode: Mode)
[src]
pub fn get_mode(&self) -> Mode
[src]
pub fn selected_path(&self) -> &Path
[src]
pub fn tree_options(&self) -> TreeOptions
[src]
pub fn with_new_options(
&mut self,
_screen: Screen,
change_options: &dyn Fn(&mut TreeOptions),
_in_new_panel: bool,
_con: &AppContext
) -> AppStateCmdResult
[src]
&mut self,
_screen: Screen,
change_options: &dyn Fn(&mut TreeOptions),
_in_new_panel: bool,
_con: &AppContext
) -> AppStateCmdResult
pub fn selection(&self) -> Selection<'_>
[src]
pub fn refresh(&mut self, _screen: Screen, _con: &AppContext) -> Command
[src]
pub fn on_pattern(
&mut self,
pattern: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
pattern: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
pub fn display(
&mut self,
w: &mut W,
_screen: Screen,
area: Area,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
_screen: Screen,
area: Area,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
pub fn on_internal(
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
pub fn on_click(
&mut self,
_x: u16,
y: u16,
_screen: Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_x: u16,
y: u16,
_screen: Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
pub fn clear_pending(&mut self)
[src]
pub fn on_double_click(
&mut self,
_x: u16,
_y: u16,
_screen: Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_x: u16,
_y: u16,
_screen: Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
pub fn on_mode_verb(
&mut self,
mode: Mode,
con: &AppContext
) -> AppStateCmdResult
[src]
&mut self,
mode: Mode,
con: &AppContext
) -> AppStateCmdResult
pub fn on_internal_generic(
&mut self,
_w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
_trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
_trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
pub fn execute_verb(
&mut self,
w: &mut W,
verb: &Verb,
invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
w: &mut W,
verb: &Verb,
invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
pub fn on_command(
&mut self,
w: &mut W,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
w: &mut W,
cc: &CmdContext<'_>,
screen: Screen
) -> Result<AppStateCmdResult, ProgramError>
pub fn open_preview(
&mut self,
prefered_mode: Option<PreviewMode>,
close_if_open: bool,
cc: &CmdContext<'_>
) -> AppStateCmdResult
[src]
&mut self,
prefered_mode: Option<PreviewMode>,
close_if_open: bool,
cc: &CmdContext<'_>
) -> AppStateCmdResult
pub fn do_pending_task(
&mut self,
_screen: Screen,
_con: &AppContext,
_dam: &mut Dam
)
[src]
&mut self,
_screen: Screen,
_con: &AppContext,
_dam: &mut Dam
)
pub fn get_pending_task(&self) -> Option<&'static str>
[src]
pub fn get_flags(&self) -> Vec<Flag>
[src]
pub fn get_starting_input(&self) -> String
[src]
pub fn set_selected_path(&mut self, _path: PathBuf, _con: &AppContext)
[src]
pub fn no_verb_status(
&self,
_has_previous_state: bool,
_con: &AppContext
) -> Status
[src]
&self,
_has_previous_state: bool,
_con: &AppContext
) -> Status
pub fn get_status(
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
has_previous_state: bool,
con: &AppContext
) -> Status
[src]
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
has_previous_state: bool,
con: &AppContext
) -> Status
Auto Trait Implementations
impl !RefUnwindSafe for FilesystemState
[src]
impl Send for FilesystemState
[src]
impl Sync for FilesystemState
[src]
impl Unpin for FilesystemState
[src]
impl UnwindSafe for FilesystemState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,