Enum Error

Source
pub enum Error {
Show 49 variants StashList(Error), ReadLog(Error), OpenRepo(Error), FindGitDir(Error), Term(Error), GitDirUtf8(FromUtf8Error), Config(Error), FileWatcher(Error), ReadRebaseStatusFile(Error), ReadBranchName(Error), BranchNameUtf8(Utf8Error), GitDiff(Error), GitDiffUtf8(FromUtf8Error), GitShow(Error), GitShowUtf8(FromUtf8Error), GitShowMeta(Error), NotOnBranch, GetHead(Error), CurrentBranchName(Error), GetCurrentBranchUpstream(Error), GetCurrentBranchUpstreamUtf8(Utf8Error), RemoteNameUtf8(Utf8Error), CannotDeleteCurrentBranch, BranchNameRequired, IsBranchMerged(Error), GetRemote(Error), ReadGitConfig(Error), ReadGitConfigUtf8(Utf8Error), DeleteGitConfig(Error), SetGitConfig(Error), RemoteHasNoName, ReadOid(Error), ArgMustBePositiveNumber, ArgInvalidRegex(Error), Clipboard(Error), FindGitRev(Error), NoEditorSet, GitStatus(Error), CmdAlreadyRunning, StashWorkTreeEmpty, CouldntAwaitCmd(Error), NoRepoWorkdir, SpawnCmd(Error), CmdBadExit(String, Option<i32>), CouldntReadCmdOutput(Error), ListGitReferences(Error), OpenLogFile(Error), PromptAborted, NoMoreEvents,
}
Expand description

Variants§

§

StashList(Error)

StashList(git2::Error),

§

ReadLog(Error)

ReadLog(git2::Error),

§

OpenRepo(Error)

OpenRepo(git2::Error),

§

FindGitDir(Error)

FindGitDir(io::Error),

§

Term(Error)

Term(io::Error),

§

GitDirUtf8(FromUtf8Error)

GitDirUtf8(string::FromUtf8Error),

§

Config(Error)

Config(figment::Error),

§

FileWatcher(Error)

FileWatcher(notify::Error),

§

ReadRebaseStatusFile(Error)

ReadRebaseStatusFile(io::Error),

§

ReadBranchName(Error)

ReadBranchName(io::Error),

§

BranchNameUtf8(Utf8Error)

BranchNameUtf8(Utf8Error),

§

GitDiff(Error)

GitDiff(io::Error),

§

GitDiffUtf8(FromUtf8Error)

GitDiffUtf8(string::FromUtf8Error),

§

GitShow(Error)

GitShow(io::Error),

§

GitShowUtf8(FromUtf8Error)

GitShowUtf8(string::FromUtf8Error),

§

GitShowMeta(Error)

GitShowMeta(git2::Error),

§

NotOnBranch

NotOnBranch,

§

GetHead(Error)

GetHead(git2::Error),

§

CurrentBranchName(Error)

CurrentBranchName(git2::Error),

§

GetCurrentBranchUpstream(Error)

GetCurrentBranchUpstream(git2::Error),

§

GetCurrentBranchUpstreamUtf8(Utf8Error)

GetCurrentBranchUpstreamUtf8(Utf8Error),

§

RemoteNameUtf8(Utf8Error)

RemoteNameUtf8(Utf8Error),

§

CannotDeleteCurrentBranch

CannotDeleteCurrentBranch,

§

BranchNameRequired

BranchNameRequired,

§

IsBranchMerged(Error)

IsBranchMerged(git2::Error),

§

GetRemote(Error)

GetRemote(git2::Error),

§

ReadGitConfig(Error)

ReadGitConfig(git2::Error),

§

ReadGitConfigUtf8(Utf8Error)

ReadGitConfigUtf8(Utf8Error),

§

DeleteGitConfig(Error)

DeleteGitConfig(git2::Error),

§

SetGitConfig(Error)

SetGitConfig(git2::Error),

§

RemoteHasNoName

RemoteHasNoName,

§

ReadOid(Error)

ReadOid(git2::Error),

§

ArgMustBePositiveNumber

ArgMustBePositiveNumber,

§

ArgInvalidRegex(Error)

ArgInvalidRegex(regex::Error),

§

Clipboard(Error)

Clipboard(arboard::Error),

§

FindGitRev(Error)

FindGitRev(git2::Error),

§

NoEditorSet

NoEditorSet,

§

GitStatus(Error)

GitStatus(git2::Error),

§

CmdAlreadyRunning

CmdAlreadyRunning,

§

StashWorkTreeEmpty

StashWorkTreeEmpty,

§

CouldntAwaitCmd(Error)

CouldntAwaitCmd(io::Error),

§

NoRepoWorkdir

NoRepoWorkdir,

§

SpawnCmd(Error)

SpawnCmd(io::Error),

§

CmdBadExit(String, Option<i32>)

CmdBadExit(String, Option),

§

CouldntReadCmdOutput(Error)

CouldntReadCmdOutput(io::Error),

§

ListGitReferences(Error)

ListGitReferences(git2::Error),

§

OpenLogFile(Error)

OpenLogFile(io::Error),

§

PromptAborted

PromptAborted,

§

NoMoreEvents

NoMoreEvents,

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<S, T> Cast<T> for S
where T: Conv<S>,

Source§

fn cast(self) -> T

Cast from Self to T Read more
Source§

fn try_cast(self) -> Result<T, Error>

Try converting from Self to T Read more
Source§

impl<S, T> CastApprox<T> for S
where T: ConvApprox<S>,

Source§

fn try_cast_approx(self) -> Result<T, Error>

Try approximate conversion from Self to T Read more
Source§

fn cast_approx(self) -> T

Cast approximately from Self to T Read more
Source§

impl<S, T> CastFloat<T> for S
where T: ConvFloat<S>,

Source§

fn cast_trunc(self) -> T

Cast to integer, truncating Read more
Source§

fn cast_nearest(self) -> T

Cast to the nearest integer Read more
Source§

fn cast_floor(self) -> T

Cast the floor to an integer Read more
Source§

fn cast_ceil(self) -> T

Cast the ceiling to an integer Read more
Source§

fn try_cast_trunc(self) -> Result<T, Error>

Try converting to integer with truncation Read more
Source§

fn try_cast_nearest(self) -> Result<T, Error>

Try converting to the nearest integer Read more
Source§

fn try_cast_floor(self) -> Result<T, Error>

Try converting the floor to an integer Read more
Source§

fn try_cast_ceil(self) -> Result<T, Error>

Try convert the ceiling to an integer Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToLine for T
where T: Display,

Source§

fn to_line(&self) -> Line<'_>

Converts the value to a Line.
Source§

impl<T> ToSpan for T
where T: Display,

Source§

fn to_span(&self) -> Span<'_>

Converts the value to a Span.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToText for T
where T: Display,

Source§

fn to_text(&self) -> Text<'_>

Converts the value to a Text.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> AsyncTraitDeps for T

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> SendOutsideWasm for T
where T: Send,

Source§

impl<T> SyncOutsideWasm for T
where T: Sync,