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
ApplyOnPanel
Fields
id: PanelId
ClosePanel
DisplayError(String)
ExecuteSequence
Fields
sequence: Sequence
HandleInApp(Internal)
Keep
Launch(Box<Launchable>)
NewPanel
NewState(Box<dyn PanelState>)
PopStateAndReapply
PopState
Quit
RefreshState
Fields
clear_cache: bool
Implementations
sourceimpl CmdResult
impl CmdResult
pub fn verb_not_found(text: &str) -> CmdResult
pub fn from_optional_state(
os: Result<Option<BrowserState>, TreeBuildError>,
in_new_panel: bool
) -> CmdResult
pub fn error<S: Into<String>>(message: S) -> Self
Trait Implementations
sourceimpl From<Launchable> for CmdResult
impl From<Launchable> for CmdResult
sourcefn from(launchable: Launchable) -> Self
fn from(launchable: Launchable) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CmdResult
impl !Send for CmdResult
impl !Sync for CmdResult
impl Unpin for CmdResult
impl !UnwindSafe for CmdResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more