pub enum CommandError {
UserError {
message: String,
hint: Option<String>,
},
ConfigError(String),
CliError(String),
ClapCliError(Arc<Error>),
BrokenPipe,
InternalError(String),
}Variants§
UserError
ConfigError(String)
CliError(String)
Invalid command line
ClapCliError(Arc<Error>)
Invalid command line detected by clap
BrokenPipe
InternalError(String)
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandError
impl Debug for CommandError
Source§impl From<BackendError> for CommandError
impl From<BackendError> for CommandError
Source§fn from(err: BackendError) -> Self
fn from(err: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<CheckOutCommitError> for CommandError
impl From<CheckOutCommitError> for CommandError
Source§fn from(err: CheckOutCommitError) -> Self
fn from(err: CheckOutCommitError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for CommandError
impl From<ConfigError> for CommandError
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for CommandError
impl From<ConfigError> for CommandError
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ConflictResolveError> for CommandError
impl From<ConflictResolveError> for CommandError
Source§fn from(err: ConflictResolveError) -> Self
fn from(err: ConflictResolveError) -> Self
Converts to this type from the input type.
Source§impl From<DiffEditError> for CommandError
impl From<DiffEditError> for CommandError
Source§fn from(err: DiffEditError) -> Self
fn from(err: DiffEditError) -> Self
Converts to this type from the input type.
Source§impl From<EditCommitError> for CommandError
impl From<EditCommitError> for CommandError
Source§fn from(err: EditCommitError) -> Self
fn from(err: EditCommitError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CommandError
impl From<Error> for CommandError
Source§impl From<Error> for CommandError
impl From<Error> for CommandError
Source§impl From<Error> for CommandError
impl From<Error> for CommandError
Source§impl From<FsPathParseError> for CommandError
impl From<FsPathParseError> for CommandError
Source§fn from(err: FsPathParseError) -> Self
fn from(err: FsPathParseError) -> Self
Converts to this type from the input type.
Source§impl From<GitExportError> for CommandError
impl From<GitExportError> for CommandError
Source§fn from(err: GitExportError) -> Self
fn from(err: GitExportError) -> Self
Converts to this type from the input type.
Source§impl From<GitImportError> for CommandError
impl From<GitImportError> for CommandError
Source§fn from(err: GitImportError) -> Self
fn from(err: GitImportError) -> Self
Converts to this type from the input type.
Source§impl From<OpHeadResolutionError<CommandError>> for CommandError
impl From<OpHeadResolutionError<CommandError>> for CommandError
Source§fn from(err: OpHeadResolutionError<CommandError>) -> Self
fn from(err: OpHeadResolutionError<CommandError>) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for CommandError
impl From<PatternError> for CommandError
Source§fn from(err: PatternError) -> Self
fn from(err: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<ResetError> for CommandError
impl From<ResetError> for CommandError
Source§fn from(_: ResetError) -> Self
fn from(_: ResetError) -> Self
Converts to this type from the input type.
Source§impl From<RevsetError> for CommandError
impl From<RevsetError> for CommandError
Source§fn from(err: RevsetError) -> Self
fn from(err: RevsetError) -> Self
Converts to this type from the input type.
Source§impl From<RevsetParseError> for CommandError
impl From<RevsetParseError> for CommandError
Source§fn from(err: RevsetParseError) -> Self
fn from(err: RevsetParseError) -> Self
Converts to this type from the input type.
Source§impl From<RewriteRootCommit> for CommandError
impl From<RewriteRootCommit> for CommandError
Source§fn from(err: RewriteRootCommit) -> Self
fn from(err: RewriteRootCommit) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for CommandError
impl From<SnapshotError> for CommandError
Source§fn from(err: SnapshotError) -> Self
fn from(err: SnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<TemplateParseError> for CommandError
impl From<TemplateParseError> for CommandError
Source§fn from(err: TemplateParseError) -> Self
fn from(err: TemplateParseError) -> Self
Converts to this type from the input type.
Source§impl From<TreeMergeError> for CommandError
impl From<TreeMergeError> for CommandError
Source§fn from(err: TreeMergeError) -> Self
fn from(err: TreeMergeError) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceInitError> for CommandError
impl From<WorkspaceInitError> for CommandError
Source§fn from(err: WorkspaceInitError) -> Self
fn from(err: WorkspaceInitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandError
impl !RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl !UnwindSafe for CommandError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more