[−][src]Trait broot::app::AppState
a whole application state, stackable to allow reverting to a previous one
Required methods
fn apply(
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn can_execute(&self, verb_index: usize, con: &AppContext) -> bool
fn refresh(&mut self, screen: &Screen, con: &AppContext) -> Command
fn do_pending_task(&mut self, screen: &mut Screen, dam: &mut Dam)
fn has_pending_task(&self) -> bool
fn display(
&mut self,
w: &mut dyn Write,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
&mut self,
w: &mut dyn Write,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
fn write_flags(
&self,
w: &mut dyn Write,
screen: &mut Screen,
con: &AppContext
) -> Result<(), ProgramError>
&self,
w: &mut dyn Write,
screen: &mut Screen,
con: &AppContext
) -> Result<(), ProgramError>
fn write_status(
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
Implementors
impl AppState for BrowserState
[src]
fn has_pending_task(&self) -> bool
[src]
fn write_status(
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
fn can_execute(&self, verb_index: usize, con: &AppContext) -> bool
[src]
fn apply(
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn do_pending_task(&mut self, screen: &mut Screen, dam: &mut Dam)
[src]
do some work, totally or partially, if there's some to do. Stop as soon as the dam asks for interruption
fn display(
&mut self,
w: &mut dyn Write,
screen: &Screen,
_con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut dyn Write,
screen: &Screen,
_con: &AppContext
) -> Result<(), ProgramError>
fn refresh(&mut self, screen: &Screen, _con: &AppContext) -> Command
[src]
fn write_flags(
&self,
w: &mut dyn Write,
screen: &mut Screen,
_con: &AppContext
) -> Result<(), ProgramError>
[src]
&self,
w: &mut dyn Write,
screen: &mut Screen,
_con: &AppContext
) -> Result<(), ProgramError>
draw the flags at the bottom right of the screen
impl AppState for HelpState
[src]
fn has_pending_task(&self) -> bool
[src]
fn can_execute(&self, _verb_index: usize, _con: &AppContext) -> bool
[src]
fn apply(
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
cmd: &mut Command,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn refresh(&mut self, _screen: &Screen, _con: &AppContext) -> Command
[src]
fn do_pending_task(&mut self, _screen: &mut Screen, _dam: &mut Dam)
[src]
fn display(
&mut self,
w: &mut dyn Write,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut dyn Write,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
fn write_status(
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&self,
w: &mut dyn Write,
cmd: &Command,
screen: &Screen,
con: &AppContext
) -> Result<(), ProgramError>
fn write_flags(
&self,
w: &mut dyn Write,
screen: &mut Screen,
_con: &AppContext
) -> Result<(), ProgramError>
[src]
&self,
w: &mut dyn Write,
screen: &mut Screen,
_con: &AppContext
) -> Result<(), ProgramError>
there's no meaningful flags here