#[non_exhaustive]pub enum SourceAction {
Show 22 variants
InitialLoad,
Refresh,
OpenDiff,
OpenShow,
OpenStatus,
OpenEvolog,
DescribeRevision,
AbandonRevision,
NewRevision,
EditRevision,
WorkspaceList,
WorkspaceStatus,
WorkspaceLog,
WorkspaceDiff,
WorkspaceUpdateStale,
OperationLog,
OperationShow,
OperationDiff,
Undo,
Redo,
UserJjCommand,
Other(String),
}Expand description
App action that triggered a command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InitialLoad
Initial view load.
Refresh
Explicit refresh.
OpenDiff
Open a diff.
OpenShow
Open a show view.
OpenStatus
Open a status view.
OpenEvolog
Open an evolog view.
DescribeRevision
Describe the selected revision.
AbandonRevision
Abandon the selected revision.
NewRevision
Create a new change from the selected revision.
EditRevision
Move the working copy to the selected revision.
WorkspaceList
List workspaces.
WorkspaceStatus
Show selected workspace status.
WorkspaceLog
Show selected workspace log.
WorkspaceDiff
Show selected workspace diff.
WorkspaceUpdateStale
Run selected workspace update-stale.
OperationLog
List repository operations.
OperationShow
Show a selected operation.
OperationDiff
Diff a selected operation.
Undo
Undo the latest operation.
Redo
Redo the latest undone operation.
UserJjCommand
Run a user-entered jj command.
Other(String)
A source action not yet modeled.
Trait Implementations§
Source§impl Clone for SourceAction
impl Clone for SourceAction
Source§impl Debug for SourceAction
impl Debug for SourceAction
impl Eq for SourceAction
Source§impl PartialEq for SourceAction
impl PartialEq for SourceAction
impl StructuralPartialEq for SourceAction
Auto Trait Implementations§
impl Forget for SourceAction
impl Freeze for SourceAction
impl RefUnwindSafe for SourceAction
impl Send for SourceAction
impl Sync for SourceAction
impl Unpin for SourceAction
impl UnsafeUnpin for SourceAction
impl UnwindSafe for SourceAction
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