Enum broot::app::CmdResult [−][src]
pub enum CmdResult {
Show 13 variants
ApplyOnPanel {
id: PanelId,
},
ClosePanel {
validate_purpose: bool,
panel_ref: PanelReference,
},
DisplayError(String),
ExecuteSequence {
sequence: Sequence,
},
HandleInApp(Internal),
Keep,
Launch(Box<Launchable>),
NewPanel {
state: Box<dyn PanelState>,
purpose: PanelPurpose,
direction: HDir,
},
NewState(Box<dyn PanelState>),
PopStateAndReapply,
PopState,
Quit,
RefreshState {
clear_cache: bool,
},
}
Expand description
Result of applying a command to a state
Variants
Fields of ApplyOnPanel
id: PanelId
Fields of ClosePanel
validate_purpose: bool
panel_ref: PanelReference
DisplayError(String)
Tuple Fields of DisplayError
0: String
Fields of ExecuteSequence
sequence: Sequence
HandleInApp(Internal)
Tuple Fields of HandleInApp
0: Internal
Launch(Box<Launchable>)
Tuple Fields of Launch
0: Box<Launchable>
Fields of NewPanel
NewState(Box<dyn PanelState>)
Tuple Fields of NewState
0: Box<dyn PanelState>
Fields of RefreshState
clear_cache: bool
Implementations
pub fn from_optional_state(
os: Result<Option<BrowserState>, TreeBuildError>,
in_new_panel: bool
) -> CmdResult
Trait Implementations
Performs the conversion.