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 {
state: Box<dyn PanelState>,
message: Option<&'static str>,
},
PopStateAndReapply,
PopState,
Quit,
RefreshState {
clear_cache: bool,
},
}
Expand description
Result of applying a command to a state
Variants§
ApplyOnPanel
ClosePanel
DisplayError(String)
ExecuteSequence
HandleInApp(Internal)
Keep
Launch(Box<Launchable>)
NewPanel
NewState
PopStateAndReapply
PopState
Quit
RefreshState
Implementations§
source§impl CmdResult
impl CmdResult
pub fn verb_not_found(text: &str) -> CmdResult
pub fn from_optional_state(
os: Result<BrowserState, TreeBuildError>,
message: Option<&'static str>,
in_new_panel: bool
) -> CmdResult
pub fn new_state(state: Box<dyn PanelState>) -> Self
pub fn error<S: Into<String>>(message: S) -> Self
Trait Implementations§
source§impl From<Launchable> for CmdResult
impl From<Launchable> for CmdResult
source§fn from(launchable: Launchable) -> Self
fn from(launchable: Launchable) -> Self
Converts to this type from the input type.