pub enum SessionAction {
New {
parent: Option<String>,
setup: Option<Setup>,
},
Fork {
entry_id: String,
at: bool,
},
Tree {
target_id: String,
options: TreeNavigation,
},
Switch {
path: String,
},
Reload,
Replaced,
}Expand description
A session change an extension command asks for, one of pi’s
ExtensionCommandContextActions.
Variants§
New
newSession, linked to a parent session file when given.
Fields
Fork
fork at an entry. at keeps the entry, as /clone does.
Tree
navigateTree to an entry.
Switch
switchSession to a session file.
Reload
reload.
Replaced
The extension finished its withSession work after a replacement.
The mode reports the change now, as pi does once it returns.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionAction
impl !Sync for SessionAction
impl !UnwindSafe for SessionAction
impl Forget for SessionAction
impl Freeze for SessionAction
impl Send for SessionAction
impl Unpin for SessionAction
impl UnsafeUnpin for SessionAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more